Part Number Hot Search : 
APTGT 2900A1 IRF6668 2060CT 2SD1145 MP351 87833 LD1117E
Product Description
Full Text Search
 

To Download AT25DF641-S3H-T Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  features ? single 2.7v ? 3.6v supply ? serial peripheral interface (spi) compatible ? supports s pi modes 0 and 3 ? supports atmel rapids ? operation ? supports dual - input program and dual - output read ? very high operating frequencies ? 100 mhz for rapids ? 75 mhz for spi ? clock - to - output (t v ) of 5 ns maximum ? flexible, optimized erase architecture for code + data st orage applications ? uniform 4 - kbyte block erase ? uniform 32 - kbyte block erase ? uniform 64 - kbyte block erase ? full chip erase ? individual sector protection with global protect/unprotect feature ? 128 sectors of 64 - kbytes each ? hardware controlled locking of protect ed sectors via p in ? sector lockdown ? make any combination of 64 - kbyte sectors permanently read - only ? 128- byte programmable otp security register ? flexible programming ? byte/page program (1 - to 256 - bytes) ? fast program and erase times ? 1.0 ms typical page program (256 - bytes) time ? 50 ms typical 4- kbyte block erase time ? 250 ms typical 32 - kbyte block erase time ? 400 ms typical 64 - kbyte block erase time ? program and erase suspend/resume ? automatic checking and reporting of erase/program failures ? s oftware controlled reset ? jedec standard manufacturer and device id read methodology ? low power dissipation ? 5ma act ive read current (typical at 20 mhz) ? 5 a deep power - down current (typical) ? endurance: 100,000 program/erase cycles ? data retention: 20 years ? comp lies with full industrial temperature range ? industry standard green (pb/halide - free/rohs compliant) package options ? 16- lead soic (300 - mil wide) ? 8 - contact very thin dfn (6 x 8 mm) 64 - mbit , 2.7 v minimum serial peripheral interface serial flash memory atmel at25df641 3680f ? dflash ? 4/10 wp
2 atmel at25df641 3680f ? dflash ? 4/10 description the atmel ? at25df641 is a serial interface flash memory device des igned for use in a wide variety of high - volume consumer based applications in which program code is shadowed from flash memory into embedded or external ram for execution. the flexible erase architecture of the at25df641, with its erase granularity as smal l as 4 - kbytes, makes it ideal for data storage as well, eliminating the need for additional data storage eeprom devices. the physical sectoring and the erase block sizes of the at25df641 have been optimized to meet the needs of today's code and data storag e applications. by optimizing the size of the physical sectors and erase blocks, the memory space can be used much more efficiently. because certain code modules and data storage segments must reside by themselves in their own protected sectors, the waste d and unused memory space that occurs with large sectored and large block erase flash memory devices can be greatly reduced. this increased memory space efficiency allows additional code routines and data storage segments to be added while still maintainin g the same overall device density. the at25df641 also offers a sophisticated method for protecting individual sectors against erroneous or malicious program and erase operations. by providing the ability to individually protect and unprotect sectors, a sys tem can unprotect a specific sector to modify its contents while keeping the remaining sectors of the memory array securely protected. this is useful in applications where program code is patched or updated on a subroutine or module basis or in application s where data storage segments need to be modified without running the risk of errant modifications to the program code segments. in addition to individual sector protection capabilities, the at25df641 incorporates global protect and global unprotect featur es that allow the entire memory array to be either protected or unprotected all at once. this reduces overhead during the manufacturing process since sectors do not have to be unprotected one - by - one prior to initial programming. to take code and data prote ction to the next level, the at25df641 incorporates a sector lockdown mechanism that allows any combination of individual 64 - kbyte sectors to be locked down and become permanently read - only. this addresses the need of certain secure applications that requi re portions of the flash memory array to be permanently protected against malicious attempts at altering program code, data modules, security information, or encryption/decryption algorithms, keys, and routines. the device also contains a specialized otp ( one - time programmable) security register that can be used for purposes such as unique device serialization, system - level electronic serial number (esn) storage, locked key storage, etc. specifically designed for use in 3 - volt systems, the at25df641 support s read, program, and erase operations with a supply voltage range of 2.7v to 3.6v. no separate voltage is required for programming and erasing.
atmel at25df641 3 3680f ? dflash ? 4/10 1. pin descriptions and pinouts table 1 - 1. pin descriptions symbol name and function asserted state type chip select: asserting the pin selects the device. when the pin is deasserted, the device will be deselected and normally be placed in standby mode (not deep power - down mode ), and the so pin will be in a high- impedance state. when the device is deselected, data will not be accepted on the si pin. a high - to - low transition on the pin is required to start an operation, and a low - to - high transition is required to end an operation. when ending an internally self - timed operation such as a program or erase cycle, the device will not enter the standby mode until the completion of the operation. low input sck serial clock: this pin is used to provide a clo ck to the device and is used to control the flow of data to and from the device. command, address, and input data present on the si pin is always latched in on the rising edge of sck, while output data on the so pin is always clocked out on the falling edg e of sck. ? input si (sio) serial input (serial input/output): the si pin is used to shift data into the device. the si pin is used for all data input including command and address sequences. data on the si pin is always latched in on the rising edge of sck. with the dual - output read array command, the si pin becomes an output pin (sio) to allow two bits of data (on the so and sio pins) to be clocked out on every falling edge of sck. to maintain consistency with spi nomenclature, the sio pin will be refer enced as si throughout the document with exception to sections dealing with the dual - output read array command in which it will be referenced as sio. data present on the si pin will be ignored whenever the device is deselected ( is deasserted). ? input/output so (soi) serial output (serial output/input): the so pin is used to shift data out from the device. data on the so pin is always clocked out on the falling edge of sck. with the dual - input byte/page program command, the s o pin becomes an input pin (soi) to allow two bits of data (on the soi and si pins) to be clocked in on every rising edge of sck. to maintain consistency with spi nomenclature, the soi pin will be referenced as so throughout the document with exception to sections dealing with the dual - input byte/page program command in which it will be referenced as soi. the so pin will be in a high - impedance state whenever the device is deselected ( is deasserted). ? output/input write protect: the pin controls the hardware locking feature of the device. please refer to ? protection commands and features ? on page 21 for more details on protection features and the wp pin. the pin is internally pulled - high and may be left floating if hardware controlled protection will not be used. however, it is recommended that the pin also be externally connected to v cc whenever possible. low input cs cs cs cs cs cs wp wp wp wp
4 atmel at25df641 3680f ? dflash ? 4/10 table 1 - 1. pin descriptions (continued) symbol name and function asserted state type hold : the pin is used to tempo rarily pause serial communication without deselecting or resetting the device. while the pin is asserted, transitions on the sck pin and data on the si pin will be ignored, and the so pin will be in a high - impedance state. the pin must be asserted, and the sck pin must be in the low state in order for a hold condition to start. a hold condition pauses serial communication only and does not have an effect on internally self - timed operations such as a program or erase cycle. please refer to ? hold ? on page 45 for additional details on the hold operation. the pin is internally pulled - high and may be left f loating if the hold function will not be used. however, it is recommended that the pin also be externally connected to v cc whenever possible. low input v cc device power supply: the v cc pin is used to supply the source voltage to the device. operations at invalid v cc voltages may produce spurious results and should not be attempted. ? power gnd ground: the ground reference for the power supply. gnd should be connected to the system ground. ? power figure 1 - 1. 8 - vdfn (top view) figure 1 - 2. 16- soic ( top view) 1 2 3 4 8 7 6 5 cs so (soi) wp gnd v cc hold sck si (sio) 1 2 3 4 5 6 7 8 16 1 5 14 13 12 11 10 9 hold v cc nc nc nc nc cs so (soi) sck si(sio) nc nc nc nc gnd wp cs hold hold hold hold hold
atmel at25df641 5 3680f ? dflash ? 4/10 2. block diagram figure 2 - 1. block diagram cs sck so (soi) si (sio) wp hold interf a ce c ontr ol and l ogic c ontr ol and pr o tection l ogic i/o b uffers and l a t ches sr am da t a b uffer fl ash memor y arr a y y-ga ting y-dec oder x-dec oder address l a t ch
6 atmel at25df641 3680f ? dflash ? 4/10 3. memory array to provide the greatest flexibility, the memory array of the atmel ? at25df641 can be erased in four levels of granularity including a full chip erase. in addition, the array has b een divided into physical sectors of uniform size, of which each sector can be individually protected from program and erase operations. the size of the physical sectors is optimized for both code and data storage applications, allowing both code and data segments to reside in their own isolated regions. the memory architecture diagram illustrates the breakdown of each erase level as well as the breakdown of each physical sector . figure 3 - 1. memory architecture diagram i n t e r n a l s e c t o r i n g f o r 6 4 k b 3 2 k b 4 k b 1 - 2 5 6 b y t e p r o t e c t i o n , l o c k d o w n , b l o c k e r a s e b l o c k e r a s e b l o c k e r a s e p a g e p r o g r a m a n d s u s p e n d f u n c t i o n s ( d 8 h c o m m a n d ) ( 5 2 h c o m m a n d ) ( 2 0 h c o m m a n d ) ( 0 2 h c o m m a n d ) 4 k b 7 f f f f f h ? 7 f f 0 0 0 h 2 5 6 b y t e s 7 f f f f f h ? 7 f f f 0 0 h 4 k b 7 f e f f f h ? 7 f e 0 0 0 h 2 5 6 b y t e s 7 f f e f f h ? 7 f f e 0 0 h 4 k b 7 f d f f f h ? 7 f d 0 0 0 h 2 5 6 b y t e s 7 f f d f f h ? 7 f f d 0 0 h 4 k b 7 f c f f f h ? 7 f c 0 0 0 h 2 5 6 b y t e s 7 f f c f f h ? 7 f f c 0 0 h 4 k b 7 f b f f f h ? 7 f b 0 0 0 h 2 5 6 b y t e s 7 f f b f f h ? 7 f f b 0 0 h 4 k b 7 f a f f f h ? 7 f a 0 0 0 h 2 5 6 b y t e s 7 f f a f f h ? 7 f f a 0 0 h 4 k b 7 f 9 f f f h ? 7 f 9 0 0 0 h 2 5 6 b y t e s 7 f f 9 f f h ? 7 f f 9 0 0 h 4 k b 7 f 8 f f f h ? 7 f 8 0 0 0 h 2 5 6 b y t e s 7 f f 8 f f h ? 7 f f 8 0 0 h 4 k b 7 f 7 f f f h ? 7 f 7 0 0 0 h 2 5 6 b y t e s 7 f f 7 f f h ? 7 f f 7 0 0 h 4 k b 7 f 6 f f f h ? 7 f 6 0 0 0 h 2 5 6 b y t e s 7 f f 6 f f h ? 7 f f 6 0 0 h 4 k b 7 f 5 f f f h ? 7 f 5 0 0 0 h 2 5 6 b y t e s 7 f f 5 f f h ? 7 f f 5 0 0 h 4 k b 7 f 4 f f f h ? 7 f 4 0 0 0 h 2 5 6 b y t e s 7 f f 4 f f h ? 7 f f 4 0 0 h 4 k b 7 f 3 f f f h ? 7 f 3 0 0 0 h 2 5 6 b y t e s 7 f f 3 f f h ? 7 f f 3 0 0 h 4 k b 7 f 2 f f f h ? 7 f 2 0 0 0 h 2 5 6 b y t e s 7 f f 2 f f h ? 7 f f 2 0 0 h 4 k b 7 f 1 f f f h ? 7 f 1 0 0 0 h 2 5 6 b y t e s 7 f f 1 f f h ? 7 f f 1 0 0 h 4 k b 7 f 0 f f f h ? 7 f 0 0 0 0 h 2 5 6 b y t e s 7 f f 0 f f h ? 7 f f 0 0 0 h 4 k b 7 e f f f f h ? 7 e f 0 0 0 h 2 5 6 b y t e s 7 f e f f f h ? 7 f e f 0 0 h 4 k b 7 e e f f f h ? 7 e e 0 0 0 h 2 5 6 b y t e s 7 f e e f f h ? 7 f e e 0 0 h 4 k b 7 e d f f f h ? 7 e d 0 0 0 h 2 5 6 b y t e s 7 f e d f f h ? 7 f e d 0 0 h 4 k b 7 e c f f f h ? 7 e c 0 0 0 h 2 5 6 b y t e s 7 f e c f f h ? 7 f e c 0 0 h 4 k b 7 e b f f f h ? 7 e b 0 0 0 h 2 5 6 b y t e s 7 f e b f f h ? 7 f e b 0 0 h 4 k b 7 e a f f f h ? 7 e a 0 0 0 h 2 5 6 b y t e s 7 f e a f f h ? 7 f e a 0 0 h 4 k b 7 e 9 f f f h ? 7 e 9 0 0 0 h 2 5 6 b y t e s 7 f e 9 f f h ? 7 f e 9 0 0 h 4 k b 7 e 8 f f f h ? 7 e 8 0 0 0 h 2 5 6 b y t e s 7 f e 8 f f h ? 7 f e 8 0 0 h 4 k b 7 e 7 f f f h ? 7 e 7 0 0 0 h 4 k b 7 e 6 f f f h ? 7 e 6 0 0 0 h 4 k b 7 e 5 f f f h ? 7 e 5 0 0 0 h 4 k b 7 e 4 f f f h ? 7 e 4 0 0 0 h 2 5 6 b y t e s 0 0 1 7 f f h ? 0 0 1 7 0 0 h 4 k b 7 e 3 f f f h ? 7 e 3 0 0 0 h 2 5 6 b y t e s 0 0 1 6 f f h ? 0 0 1 6 0 0 h 4 k b 7 e 2 f f f h ? 7 e 2 0 0 0 h 2 5 6 b y t e s 0 0 1 5 f f h ? 0 0 1 5 0 0 h 4 k b 7 e 1 f f f h ? 7 e 1 0 0 0 h 2 5 6 b y t e s 0 0 1 4 f f h ? 0 0 1 4 0 0 h 4 k b 7 e 0 f f f h ? 7 e 0 0 0 0 h 2 5 6 b y t e s 0 0 1 3 f f h ? 0 0 1 3 0 0 h 2 5 6 b y t e s 0 0 1 2 f f h ? 0 0 1 2 0 0 h 2 5 6 b y t e s 0 0 1 1 f f h ? 0 0 1 1 0 0 h 2 5 6 b y t e s 0 0 1 0 f f h ? 0 0 1 0 0 0 h 4 k b 0 0 f f f f h ? 0 0 f 0 0 0 h 2 5 6 b y t e s 0 0 0 f f f h ? 0 0 0 f 0 0 h 4 k b 0 0 e f f f h ? 0 0 e 0 0 0 h 2 5 6 b y t e s 0 0 0 e f f h ? 0 0 0 e 0 0 h 4 k b 0 0 d f f f h ? 0 0 d 0 0 0 h 2 5 6 b y t e s 0 0 0 d f f h ? 0 0 0 d 0 0 h 4 k b 0 0 c f f f h ? 0 0 c 0 0 0 h 2 5 6 b y t e s 0 0 0 c f f h ? 0 0 0 c 0 0 h 4 k b 0 0 b f f f h ? 0 0 b 0 0 0 h 2 5 6 b y t e s 0 0 0 b f f h ? 0 0 0 b 0 0 h 4 k b 0 0 a f f f h ? 0 0 a 0 0 0 h 2 5 6 b y t e s 0 0 0 a f f h ? 0 0 0 a 0 0 h 4 k b 0 0 9 f f f h ? 0 0 9 0 0 0 h 2 5 6 b y t e s 0 0 0 9 f f h ? 0 0 0 9 0 0 h 4 k b 0 0 8 f f f h ? 0 0 8 0 0 0 h 2 5 6 b y t e s 0 0 0 8 f f h ? 0 0 0 8 0 0 h 4 k b 0 0 7 f f f h ? 0 0 7 0 0 0 h 2 5 6 b y t e s 0 0 0 7 f f h ? 0 0 0 7 0 0 h 4 k b 0 0 6 f f f h ? 0 0 6 0 0 0 h 2 5 6 b y t e s 0 0 0 6 f f h ? 0 0 0 6 0 0 h 4 k b 0 0 5 f f f h ? 0 0 5 0 0 0 h 2 5 6 b y t e s 0 0 0 5 f f h ? 0 0 0 5 0 0 h 4 k b 0 0 4 f f f h ? 0 0 4 0 0 0 h 2 5 6 b y t e s 0 0 0 4 f f h ? 0 0 0 4 0 0 h 4 k b 0 0 3 f f f h ? 0 0 3 0 0 0 h 2 5 6 b y t e s 0 0 0 3 f f h ? 0 0 0 3 0 0 h 4 k b 0 0 2 f f f h ? 0 0 2 0 0 0 h 2 5 6 b y t e s 0 0 0 2 f f h ? 0 0 0 2 0 0 h 4 k b 0 0 1 f f f h ? 0 0 1 0 0 0 h 2 5 6 b y t e s 0 0 0 1 f f h ? 0 0 0 1 0 0 h 4 k b 0 0 0 f f f h ? 0 0 0 0 0 0 h 2 5 6 b y t e s 0 0 0 0 f f h ? 0 0 0 0 0 0 h 6 4 k b ? ? ? 6 4 k b 3 2 k b 3 2 k b ? ? ? r a n g e ? ? ? ? ? ? r a n g e p a g e p r o g r a m d e t a i l p a g e a d d r e s s b l o c k a d d r e s s 6 4 k b 6 4 k b ( s e c t o r 1 2 7 ) b l o c k e r a s e d e t a i l 3 2 k b 3 2 k b 6 4 k b ( s e c t o r 0 ) 3 2 k b 3 2 k b ? ? ? 6 4 k b ( s e c t o r 1 2 6 )
atmel at25df641 7 3680f ? dflash ? 4/10 4. device operation the atmel ? at25df641 is control led by a set of instructions that are sent from a host controller, commonly referred to as the spi master. the spi master communicates with the at25df641 via the spi bus which is comprised of four signal lines: chip select ( ), s erial clock (sck), serial input (si), and serial output (so). the at25df641 features a dual - input program mode in which the so pin become an input. similarly, the device also features a dual - output read mode in which the si pin becomes an output. in the du al - input byte/page program command description, the so pin will be referred to as the soi (serial output/input) pin, and in the dual - output read array command, the si pin will be referenced as the sio (serial input/output) pin. the spi protocol defines a t otal of four modes of operation (mode 0, 1, 2, or 3) with each mode differing in respect to the sck polarity and phase and how the polarity and phase control the flow of data on the spi bus. the at25df641 supports the two most common modes, spi modes 0 and 3. the only difference between spi modes 0 and 3 is the polarity of the sck signal when in the inactive state (when the spi master is in standby mode and not transferring any data). with spi modes 0 and 3, data is always latched in on the rising edge of sck and always output on the falling edge of sck. figure 4 - 1. spi mode 0 and 3 s o s i s c k c s m s b l s b m s b l s b 5. commands and addressing a valid instruction or operation must always be started by first asserting the pin. after the pin has be en asserted, the host controller must then clock out a valid 8 - bit opcode on the spi bus. following the opcode, instruction dependent information such as address and data bytes would then be clocked out by the host controller. all opcode, address, and data bytes are transferred with the most - significant bit (msb) first. an operation is ended by deasserting the pin. opcodes not supported by the at25df641 will be ignored by the device and no operation will be started. the device w ill continue to ignore any data presented on the si pin until the start of the next operation ( pin being deasserted and then reasserted). in addition, if the pin is deasserted before complete opcod e and address information is sent to the device, then no operation will be performed and the device will simply return to the idle state and wait for the next operation. addressing of the device requires a total of three bytes of information to be sent, re presenting address bits a23 - a0. since the upper address limit of the at25df641 memory array is 7fffffh, address bit a23 is always ignored by the device. cs cs cs cs cs cs
8 atmel at25df641 3680f ? dflash ? 4/10 table 5 - 1. command listing command opcode clock frequency address bytes dummy bytes data bytes read commands re ad array 1bh 0001 1011 up to 75 mhz 3 2 1+ 0bh 0000 1011 up to 75 mhz 3 1 1+ 03h 0000 0011 up to 45 mhz 3 0 1+ dual - output read array 3bh 0011 1011 up to 55 mhz 3 1 1+ program and erase commands block erase (4 - kbytes) 20h 0010 0000 up to 75 mhz 3 0 0 block erase (32 - kbytes) 52h 0101 0010 up to 75 mhz 3 0 0 block erase (64 - kbytes) d8h 1101 1000 up to 75 mhz 3 0 0 chip erase 60h 0110 0000 up to 75 mhz 0 0 0 c7h 1100 0111 up to 75 mhz 0 0 0 byte/page program (1 to 256 bytes) 02h 0000 0010 up to 7 5 mhz 3 0 1+ dual - input byte/page program (1 to 256 bytes) a2h 1010 0010 up to 75 mhz 3 0 1+ program/erase suspend b0h 1011 0000 up to 75 mhz 0 0 0 program/erase resume d0h 1101 0000 up to 75 mhz 0 0 0 protection commands write enable 06h 0000 0110 up to 75 mhz 0 0 0 write disable 04h 0000 0100 up to 75 mhz 0 0 0 protect sector 36h 0011 0110 up to 75 mhz 3 0 0 unprotect sector 39h 0011 1001 up to 75 mhz 3 0 0 global protect/unprotect use write status register byte 1 command read sector protection registers 3ch 0011 1100 up to 75 mhz 3 0 1+ security commands sector lockdown 33h 0011 0011 up to 75 mhz 3 0 1 freeze sector lockdown state 34h 0011 0100 up to 75 mhz 3 0 1 read sector lockdown registers 35h 0011 0101 up to 75 mhz 3 0 1+ program otp security register 9bh 1001 1011 up to 75 mhz 3 0 1+ read otp security register 77h 0111 0111 up to 75 mhz 3 2 1+ status register commands read status register 05h 0000 0101 up to 75 mhz 0 0 1+ write status register byte 1 01h 0000 0001 up to 75 mhz 0 0 1 write status register byte 2 31h 0011 0001 up to 75mhz 0 0 1 miscellaneous commands reset f0h 1111 0000 up to 75 mhz 0 0 1 read manufacturer and device id 9fh 1001 1111 up to 75 mhz 0 0 1 to 4 deep power - down b9h 1011 1001 up to 75 mhz 0 0 0 resu me from deep power - down abh 1010 1011 up to 75 mhz 0 0 0
atmel at25df641 9 3680f ? dflash ? 4/10 6. read commands 6.1. read array the read array command can be used to sequentially read a continuous stream of data from the device by simply providing the clock signal once the initial starting address ha s been specified. the device incorporates an internal address counter that automatically increments on every clock cycle. three opcodes (1bh, 0bh, and 03h) can be used for the read array command. the use of each opcode depends on the maximum clock frequenc y that will be used to read data from the device. the 0bh opcode can be used at any clock frequency up to the maximum specified by f clk , and the 03h opcode can be used for lower frequency read operations up to the maximum specified by f rdlf . the 1bh opcode allows the highest read performance possible and can be used at any clock frequency up to the maximum specified by f max ; however, use of the 1bh opcode at clock frequencies above f clk should be reserved to systems employing the rapids protocol. to perform the read array operation, the pin must first be asserted and the appropriate opcode (1bh, 0bh, or 03h) must be clocked into the device. after the opcode has been clocked in, the three address bytes must be clocked in to specif y the starting address location of the first byte to read within the memory array. following the three address bytes, additional dummy bytes may need to be clocked into the device depending on which opcode is used for the read array operation. if the 1bh o pcode is used, then two dummy bytes must be clocked into the device after the three address bytes. if the 0bh opcode is used, then a single dummy byte must be clocked in after the address bytes. after the three address bytes (and the dummy bytes or byte if using opcodes 1bh or 0bh) have been clocked in, additional clock cycles will result in data being output on the so pin. the data is always output with the msb of a byte first. when the last byte (7fffffh) of the memory array has been read, the device will continue reading back at the beginning of the array (000000h). no delays will be incurred when wrapping around from the end of the array to the beginning of the array. deasserting the pin will terminate the read operation and put the so pin into a high - impedance state. the pin can be deasserted at any time and does not require that a full byte of data be read. figure 6 - 1. read array - 1bh opcode s o s i s c k m s b m s b 2 3 1 0 0 0 0 1 1 0 1 1 6 7 5 4 1 0 1 1 9 8 1 2 3 9 4 2 4 3 4 1 4 0 3 7 3 8 3 3 3 6 3 5 3 4 3 1 3 2 2 9 3 0 4 4 4 7 4 8 4 6 4 5 5 0 5 1 4 9 5 2 5 5 5 6 5 4 5 3 o p c o d e a a a a a a a a a m s b x x x x x x x x m s b m s b d d d d d d d d d d a d d r e s s b i t s a 2 3 - a 0 d o n ' t c a r e m s b x x x x x x x x d o n ' t c a r e d a t a b y t e 1 h i g h - i m p e d a n c e c s cs cs cs
10 atmel at25df641 3680f ? dflash ? 4/10 figure 6 - 2. read array - 0bh opcode s o s i s c k c s m s b m s b 2 3 1 0 0 0 0 0 1 0 1 1 6 7 5 4 1 0 1 1 9 8 1 2 3 9 4 2 4 3 4 1 4 0 3 7 3 8 3 3 3 6 3 5 3 4 3 1 3 2 2 9 3 0 4 4 4 7 4 8 4 6 4 5 o p c o d e a a a a a a a a a m s b x x x x x x x x m s b m s b d d d d d d d d d d a d d r e s s b i t s a 2 3 - a 0 d o n ' t c a r e d a t a b y t e 1 h i g h - i m p e d a n c e figure 6 - 3. read array - 03h opcode s o s i s c k m s b m s b 2 3 1 0 0 0 0 0 0 0 1 1 6 7 5 4 1 0 1 1 9 8 1 2 3 7 3 8 3 3 3 6 3 5 3 4 3 1 3 2 2 9 3 0 3 9 4 0 o p c o d e a a a a a a a a a m s b m s b d d d d d d d d d d a d d r e s s b i t s a 2 3 - a 0 d a t a b y t e 1 h i g h - i m p e d a n c e c s
atmel at25df641 11 3680f ? dflash ? 4/10 6.2. dual - output read array the dual - output read array command is similar to the standard read array command and can be used to sequentially read a continuous stream of data from the device by simply providing the clock signal once the initial starting address has been specified. unlike the standard read array command, however, the dual - output read array command allows two bits of data to be clocked out of the device on every clock cycle rather than just one. the dual - output read array command can be used at an y clock frequency up to the maximum specified by f rddo . to perform the dual - output read array operation, the pin must first be asserted and the opcode of 3bh must be clocked into the device. after the opcode has been clocked in, the three address bytes must be clocked in to specify the starting address location of the first byte to read within the memory array. following the three address bytes, a single dummy byte must also be clocked into the device. a fter the three address byt es and the dummy byte have been clocked in, additional clock cycles will result in data being output on both the so and sio pins. the data is always output with the msb of a byte first, and the msb is always output on the so pin. during the first clock cyc le, bit seven of the first data byte will be output on the so pin while bit six of the same data byte will be output on the sio pin. during the next clock cycle, bits five and four of the first data byte will be output on the so and sio pins, respectively. the sequence continues with each byte of data being output after every four clock cycles. when the last byte (7fffffh) of the memory array has been read, the device will continue reading back at the beginning of the array (000000h). no delays will be incu rred when wrapping around from the end of the array to the beginning of the array. deasserting the pin will terminate the read operation and put the so and sio pins into a high - impedance state. the pin can be deasserted at any time and does not require that a full byte of data be read. figure 6 - 4. dual - output read array c s s o s i s c k m s b m s b 2 3 1 0 0 0 1 1 1 0 1 1 6 7 5 4 1 0 1 1 9 8 1 2 3 9 4 2 4 3 4 1 4 0 3 7 3 8 3 3 3 6 3 5 3 4 3 1 3 2 2 9 3 0 4 4 4 7 4 8 4 6 4 5 o p c o d e a a a a a a a a a m s b x x x x x x x x m s b m s b a d d r e s s b i t s a 2 3 - a 0 d o n ' t c a r e o u t p u t d a t a b y t e 1 o u t p u t d a t a b y t e 2 h i g h - i m p e d a n c e d 7 d 5 d 3 d 1 d 7 d 5 d 3 d 1 d 7 d 5 d 6 d 4 d 2 d 0 d 6 d 4 d 2 d 0 d 6 d 4 cs cs cs
12 atmel at25df641 3680f ? dflash ? 4/10 7. program and erase commands 7.1. byte/page program the byte/page program command allows anywhere from a single byte of data to 256 - bytes of d ata to be programmed into previously erased memory locations. an erased memory location is one that has all eight bits set to the logical ?1? state (a byte value of ffh). before a byte/page program command can be started, the write enable command must have been previously issued to the device (see ? write enable ? on page 21 ) to set the write enable latch (wel) bit of the status register to a logical ?1? state. to perform a byte/page prog ram command, an opcode of 02h must be clocked into the device followed by the three address bytes denoting the first byte location of the memory array to begin programming at. after the address bytes have been clocked in, data can then be clocked into the device and will be stored in an internal buffer. if the starting memory address denoted by a23 - a0 does not fall on an even 256 - byte page boundary (a7 - a0 are not all 0), then special circumstances regarding which memory locations to be programmed will apply . in this situation, any data that is sent to the device that goes beyond the end of the page will wrap around back to the beginning of the same page. for example, if the starting address denoted by a23 - a0 is 0000feh, and three bytes of data are sent to th e device, then the first two bytes of data will be programmed at addresses 0000feh and 0000ffh while the last byte of data will be programmed at address 000000h. the remaining bytes in the page (addresses 000001h through 0000fdh) will not be programmed and will remain in the erased state (ffh). in addition, if more than 256 - bytes of data are sent to the device, then only the last 256 - bytes sent will be latched into the internal buffer. when the pin is deasserted, the device will take the data stored in the internal buffer and program it into the appropriate memory array locations based on the starting address specified by a23 - a0 and the number of data bytes sent to the device. if less than 256 - bytes of data were sent to the devic e, then the remaining bytes within the page will not be programmed and will remain in the erased state (ffh). the programming of the data bytes is internally self - timed and should take place in a time of t pp or t bp if only programming a single byte. the th ree address bytes and at least one complete byte of data must be clocked into the device before the pin is deasserted, and the pin must be deasserted on even byte boundaries (multiples of eight bits ); otherwise, the device will abort the operation and no data will be programmed into the memory array. in addition, if the address specified by a23 - a0 points to a memory location within a sector that is in the protected state (see ? protect sector ? on page 22 ) or locked down (see ? sector lockdown ? on page 28 ), then the byte/page program command will not be executed, and the device will return to the idle state once the pin has been deasserted. the wel bit in the status register will be reset back to the logical ?0? state if the program cycle aborts due to an incomplete address being sent, an incomplete byte of data being sent, the pin being deasserted on uneven byte boundaries, or because the memory location to be programmed is protected or locked down. while the device is programming, the status register can b e read and will indicate that the device is busy. for faster throughput, it is recommended that the status register be polled rather than waiting the t bp or t pp time to determine if the data bytes have finished programming. at some point before the progra m cycle completes, the wel bit in the status register will be reset back to the logical ?0? state. the device also incorporates an intelligent programming algorithm that can detect when a byte location fails to program properly. if a programming error aris es, it will be indicated by the epe bit in the status register cs cs cs cs cs
atmel at25df641 13 3680f ? dflash ? 4/10 figure 7 - 1. byte program s o s i s c k c s m s b m s b 2 3 1 0 0 0 0 0 0 0 1 0 6 7 5 4 1 0 1 1 9 8 1 2 3 9 3 7 3 8 3 3 3 6 3 5 3 4 3 1 3 2 2 9 3 0 o p c o d e h i g h - i m p e d a n c e a a a a a a a a a m s b d d d d d d d d a d d r e s s b i t s a 2 3 - a 0 d a t a i n figure 7 - 2. page program s o s i s c k m s b m s b 2 3 1 0 0 0 0 0 0 0 1 0 6 7 5 4 9 8 3 9 3 7 3 8 3 3 3 6 3 5 3 4 3 1 3 2 2 9 3 0 o p c o d e h i g h - i m p e d a n c e a a a a a a m s b d d d d d d d d a d d r e s s b i t s a 2 3 - a 0 d a t a i n b y t e 1 m s b d d d d d d d d d a t a i n b y t e n c s 7.2. dual - input byte/page program the dual - input byte/page program command is similar to the standard byte/page program command and can be used to program anywhere from a single byte of data up to 256 - bytes of data into previously erased memory locations. unlike the standard byte/page program command, however, the dual - input byte/page program command allows two bits of data to be clocked into the device on every clock cy cle rather than just one. before the dual - input byte/page program command can be started, the write enable command must have been previously issued to the device (see ? write enable ? on page 21 ) to set the write enable latch (wel) bit of the status register to a logical ?1? state. to perform a dual - input byte/page program command, an opcode of a2h must be clocked into the device followed by the three address bytes denoting the first byte location of the memory array to begin programming at. after the address bytes have been clocked in, data can then be clocked into the device two bits at a time on both the soi and si pins. the data is always input with the msb of a byte first, and the msb is always input on the soi pin. during the first clock cycle, bit seven of the first data byte would be input on the soi pin while bit six of the same data byte would be input on the si pin. during the next clock cycle, bits five and four of the first dat a byte would be input on the soi and si pins, respectively. the sequence would continue with each byte of data being input after every four clock cycles. like the standard byte/page program command, all data clocked into the device is stored in an internal buffer.
14 atmel at25df641 3680f ? dflash ? 4/10 if the starting memory address denoted by a23 - a0 does not fall on an even 256 - byte page boundary (a7 - a0 are not all 0), then special circumstances regarding which memory locations to be programmed will apply. in this situation, any data that is se nt to the device that goes beyond the end of the page will wrap around back to the beginning of the same page. for example, if the starting address denoted by a23 - a0 is 0000feh, and three bytes of data are sent to the device, then the first two bytes of da ta will be programmed at addresses 0000feh and 0000ffh while the last byte of data will be programmed at address 000000h. the remaining bytes in the page (addresses 000001h through 0000fdh) will not be programmed and will remain in the erased state (ffh). in addition, if more than 256 - bytes of data are sent to the device, then only the last 256 - bytes sent will be latched into the internal buffer. when the pin is deasserted, the device will take the data stored in the internal bu ffer and program it into the appropriate memory array locations based on the starting address specified by a23 - a0 and the number of data bytes sent to the device. if less than 256 - bytes of data were sent to the device, then the remaining bytes within the p age will not be programmed and will remain in the erased state (ffh). the programming of the data bytes is internally self - timed and should take place in a time of t pp or t bp if only programming a single byte. the three address bytes and at least one compl ete byte of data must be clocked into the device before the pin is deasserted, and the pin must be deasserted on even byte boundaries (multiples of eight bits); otherwise, the device will abort the operation and no data will be programmed into the memory array. in addition, if the address specified by a23 - a0 points to a memory location within a sector that is in the protected state (see ? protect sector ? on pa ge 22 ) or locked down (see ? sector lockdown ? on page 28 ), then the byte/page program command will not be executed, and the device will return to the idle state once the pin has been deasserted. the wel bit in the status register will be reset back to the logical ?0? state if the program cycle aborts due to an incomplete address being sent, an incomplete byte of data being sent, the pin being deasserted on uneven byte boundaries, or because the memory location to be programmed is protected or locked down. while the device is programming, the status register can be read and will indicate that the device is busy. for faster throughput, it is recommended that the status register be polled rather than waiting the t bp or t pp time to determine if the data bytes have finished programming. at some point before the program cycle completes, the wel bit in the sta tus register will be reset back to the logical ?0? state. the device also incorporates an intelligent programming algorithm that can detect when a byte location fails to program properly. if a programming error arises, it will be indicated by the epe bit i n the status register. figure 7 - 3. dual - input byte program s o i s i s c k m s b m s b 2 3 1 0 1 0 1 0 0 0 1 0 6 7 5 4 1 0 1 1 9 8 1 2 3 3 3 5 3 4 3 1 3 2 2 9 3 0 o p c o d e a a a a a a a a a a d d r e s s b i t s a 2 3 - a 0 m s b d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 i n p u t d a t a b y t e h i g h - i m p e d a n c e c s cs cs cs cs cs
atmel at25df641 15 3680f ? dflash ? 4/10 figure 7 - 4. dual - input page program s o i s i s c k m s b m s b 2 3 1 0 1 0 1 0 0 0 1 0 6 7 5 4 1 0 1 1 9 8 1 2 3 9 3 7 3 8 3 3 3 6 3 5 3 4 3 1 3 2 2 9 3 0 o p c o d e a a a a a a a a a m s b m s b d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 a d d r e s s b i t s a 2 3 - a 0 i n p u t d a t a b y t e 1 m s b d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 i n p u t d a t a b y t e n i n p u t d a t a b y t e 2 h i g h - i m p e d a n c e c s 7.3. block erase a block of 4 - , 32 - , or 64 - kbytes can be erased (all bits set to the logical ?1? state) in a single operation by using one of three different opcodes for the block erase command. an opcode of 20h is used for a 4 - kbyte erase, an opcode of 52h is used for a 32 - kbyte erase, and an opcode of d8h is used for a 64 - kbyte erase. before a block erase command can be started, the write enable command must have been previously issued to the device to set the wel bit of the status register to a logical ?1? state. to perform a block erase, the pin must first be asserted and the appropriate opcode (20h, 52h, or d8h) must be clocked into the device. after the o pcode has been clocked in, the three address bytes specifying an address within the 4 - , 32 - , or 64 - kbyte block to be erased must be clocked in. any additional data clocked into the device will be ignored. when the pin is deasse rted, the device will erase the appropriate block. the erasing of the block is internally self - timed and should take place in a time of t blke . since the block erase command erases a region of bytes, the lower order address bits do not need to be decoded by the device. therefore, for a 4 - kbyte erase, address bits a11 - a0 will be ignored by the device and their values can be either a logical ?1? or ?0?. for a 32 - kbyte erase, address bits a14 - a0 will be ignored, and for a 64- kbyte erase, address bits a15 - a0 wil l be ignored by the device. despite the lower order address bits not being decoded by the device, the complete three address bytes must still be clocked into the device before the pin is deasserted, and the pin must be deasserted on an even byte boundary (multiples of eight bits); otherwise, the device will abort the operation and no erase operation will be performed. if the address specified by a23 - a0 points to a memory location within a sector that is in the protected or locked down state, then the block erase command will not be executed, and the device will return to the idle state once the pin has been deasserted. the wel bit in the status register will be reset back to the logical ?0? state if the erase cycle aborts due to an incomplete address being sent, the pin being deasserted on uneven byte boundaries, or because a memory location within the region to be erased is protected or locked down. while the device is executing a successful erase cycle, the status register can be read and will indicate that the device is busy. for faster throughput, it is recommended that the status register be polled rather than waiting the t blke time to deter mine if the device has finished erasing. at some point before the erase cycle completes, the wel bit in the status register will be reset back to the logical ?0? state. the device also incorporates an intelligent erase algorithm that can detect when a byte location fails to erase properly. if an erase error occurs, it will be indicated by the epe bit in the status register. cs cs cs cs cs cs
16 atmel at25df641 3680f ? dflash ? 4/10 figure 7 - 5. block erase s o s i s c k c s m s b m s b 2 3 1 0 c c c c c c c c 6 7 5 4 1 0 1 1 9 8 1 2 3 1 2 9 3 0 2 7 2 8 2 6 o p c o d e a a a a a a a a a a a a a d d r e s s b i t s a 2 3 - a 0 h i g h - i m p e d a n c e 7.4. chip erase the entire memory array can be erased in a single operation by using the chip erase command. before a chip era se command can be started, the write enable command must have been previously issued to the device to set the wel bit of the status register to a logical ?1? state. two opcodes, 60h and c7h, can be used for the chip erase command. there is no difference in device functionality when utilizing the two opcodes, so they can be used interchangeably. to perform a chip erase, one of the two opcodes (60h or c7h) must be clocked into the device. since the entire memory array is to be erased, no address bytes need t o be clocked into the device, and any data clocked in after the opcode will be ignored. when the pin is deasserted, the device will erase the entire memory array. the erasing of the device is internally self - timed and should t ake place in a time of t chpe . the complete opcode must be clocked into the device before the pin is deasserted, and the pin must be deasserted on an even byte boundary (multiples of eight bits); oth erwise, no erase will be performed. in addition, if any sector of the memory array is in the protected or locked down state, then the chip erase command will not be executed, and the device will return to the idle state once the pin has been deasserted. the wel bit in the status register will be reset back to the logical ?0? state if the pin is deasserted on uneven byte boundaries or if a sector is in the protected or locked down state. while the dev ice is executing a successful erase cycle, the status register can be read and will indicate that the device is busy. for faster throughput, it is recommended that the status register be polled rather than waiting the t chpe time to determine if the device has finished erasing. at some point before the erase cycle completes, the wel bit in the status register will be reset back to the logical ?0? state. the device also incorporates an intelligent erase algorithm that can detect when a byte location fails to erase properly. if an erase error occurs, it will be indicated by the epe bit in the status register. cs cs cs cs cs
atmel at25df641 17 3680f ? dflash ? 4/10 figure 7 - 6. chip erase s o s i s c k c s m s b 2 3 1 0 c c c c c c c c 6 7 5 4 o p c o d e h i g h - i m p e d a n c e 7.5. program/erase suspend in some code plus data storage applications, it is often necessary to process certain high - level system interrupts that require relatively immediate reading of code or data from the flash memory. in such an instance, it may not be possible for the system to wait the microseconds or milliseconds required for the flash memory to complete a program or erase cycle. the program /erase suspend command allows a program or erase operation in progress to a particular 64 - kbyte sector of the flash memory array to be suspended so that other device operations can be performed. for example, by suspending an erase operation to a particula r sector, the system can perform functions such as a program or read operation within another 64 - kbyte sector in the device. other device operations, such as a read status register, can also be performed while a program or erase operation is suspended. table 7 - 1 outlines the operations that are allowed and not allowed during a program or erase suspend. since the need to suspend a program or erase operation is immediate, the write enable command does not need to be issued prior t o the program/erase suspend command being issued. therefore, the program/erase suspend command operates independently of the state of the wel bit in the status register. to perform a program/erase suspend, the pin must first be asserted and the opcode of b0h must be clocked into the device. no address bytes need to be clocked into the device, and any data clocked in after the opcode will be ignored. when the pin is deasserted, the program or erase op eration currently in progress will be suspended within a time of t susp . the program suspend (ps) bit or the erase suspend (es) bit in the status register will then be set to the logical ?1? state to indicate that the program or erase operation has been sus pended. in addition, the rdy/bsy bit in the status register will indicate that the device is ready for another operation. the complete opcode must be clocked into the device before the pin is deasserted, and the pin must be deasserted on an even byte boundary (multiples of eight bits); otherwise, no suspend operation will be performed. read operations are not allowed to a 64 - kbyte sector that has had its program or erase operation suspended. if a re ad is attempted to a suspended sector, then the device will output undefined data. therefore, when performing a read array operation to an unsuspended sector and the device?s internal address counter increments and crosses the sector boundary to a suspende d sector, the device will then start outputting undefined data continuously until the address counter increments and crosses a sector boundary to an unsuspended sector. cs cs cs cs
18 atmel at25df641 3680f ? dflash ? 4/10 a program operation is not allowed to a sector that has been erase suspended. if a prog ram operation is attempted to an erase suspended sector, then the program operation will abort and the wel bit in the status register will be reset back to the logical ?0? state. likewise, an erase operation is not allowed to a sector that has been program suspended. if attempted, the erase operation will abort and the wel bit in the status register will be reset to a logical ?0? state. during an erase suspend, a program operation to a different 64 - kbyte sector can be started and subsequently suspended. th is results in a simultaneous erase suspend/program suspend condition and will be indicated by the states of both the es and ps bits in the status register being set to the logical ?1? state. if a reset operation (see ? reset ? on page 40 ) is performed while a sector is erase suspended, the suspend operation will abort and the contents of the block in the suspended sector will be left in an undefined state. however, if a reset is performed while a sector is program suspended, the suspend operation will abort but only the contents of the page that was being programmed and subsequently suspended will be undefined. the remaining pages in the 64 - kbyte sector will retain their previous contents. if an attempt is made to perform an operation that is not allowed during a program or erase suspend, such as a protect sector operation, then the device will simply ignore the opcode and no operation will be performed. the state of the wel bit in the stat us register, as well as the sprl (sector protection registers locked) and sle (sector lockdown enabled) bits, will not be affected.
atmel at25df641 19 3680f ? dflash ? 4/10 table 7 - 1. operations allowed and not allowed during a program or erase suspend command operation during program suspend operation duri ng erase suspend read commands read array (all opcodes) allowed allowed program and erase commands block erase not allowed not allowed chip erase not allowed not allowed byte/page program (all opcodes) not allowed allowed program/erase suspend not allowed allowed program/erase resume allowed allowed protection commands write enable not allowed allowed write disable not allowed allowed protect sector not allowed not allowed unprotect sector not allowed not allowed global protect/unpr otect not allowed not allowed read sector protection registers allowed allowed security commands sector lockdown not allowed not allowed freeze sector lockdown state not allowed not allowed read sector lockdown registers allowed allowed program otp security register not allowed not allowed read otp security register allowed allowed status register commands read status register allowed allowed write status register (all opcodes) not allowed not allowed miscellaneous commands reset allowe d allowed read manufacturer and device id allowed allowed deep power - down not allowed not allowed resume from deep power - down not allowed not allowed
20 atmel at25df641 3680f ? dflash ? 4/10 figure 7 - 7. program/erase suspend s o s i s c k c s m s b 2 3 1 0 1 0 1 1 0 0 0 0 6 7 5 4 o p c o d e h i g h - i m p e d a n c e 7.6. program/erase resume the program/erase resume command allows a suspended pr ogram or erase operation to be resumed and continue programming a flash page or erasing a flash memory block where it left off. as with the program/erase suspend command, the write enable command does not need to be issued prior to the program/erase resume command being issued. therefore, the program/erase resume command operates independently of the state of the wel bit in the status register. to perform a program/erase resume, the pin must first be asserted and the opcode of d 0h must be clocked into the device. no address bytes need to be clocked into the device, and any data clocked in after the opcode will be ignored. when the pin is deasserted, the program or erase operation currently suspended w ill be resumed within a time of t res . the ps bit or the es bit in the status register will then be reset back to the logical ?0? state to indicate that the program or erase operation is no longer suspended. in addition, the rdy/bsy bit in the status regist er will indicate that the device is busy performing a program or erase operation. the complete opcode must be clocked into the device before the pin is deasserted, and the pin must be deasserted on an even byte boundary (multiples of eight bits); otherwise, no resume operation will be performed. during a simultaneous erase suspend/program suspend condition, issuing the program/erase resume command will result in the program operation resuming first. after the program operation has been completed, the program/erase resume command must be issued again in order for the erase operation to be resumed. while the device is busy resuming a program or erase operation, any attempts at issuing the program/erase suspend command will be ignored. therefore, if a resumed program or erase operation needs to be subsequently suspended again, the system must either wait the entire t res time before issuing the program/erase suspend command, or it must check the status of the rdy/bsy bit or the appropriate ps or es bit in the status register to determine if the previously suspended program or erase operation has resumed. cs cs cs cs
atmel at25df641 21 3680f ? dflash ? 4/10 figure 7 - 8. program/erase resume s o s i s c k c s m s b 2 3 1 0 1 1 0 1 0 0 0 0 6 7 5 4 o p c o d e h i g h - i m p e d a n c e 8. protection commands and features 8.1. write enable the write enable command is used to set the write enable latch (wel) bit in the status register to a logical ?1? state. the wel bit must be set before a byte/page program, erase, protect sector, unprotect sector, sector lockdown, freeze sector lockdown state, program otp security register, or write status register command can be executed. this makes the issuance of these commands a two step process, thereby reducing the chances of a command being accidentally or erroneously executed. if the wel bit in the status register is not set prior to the issuance of one of these commands, then the command will not be executed. to issue the write enable command, the pin must first be asserted and the opcode of 06h must be clocked into the device. no address bytes need to be clocked into the device, and any data clocked in after the opcode will be ignored. when the pin is deasserted, the wel bit in the status register will be set to a logical ?1?. the complete opcode must be clocked into the device before the pin is deasserted, and the pin must be deasserted on an even byte boundary (multiples of eight bits); otherwise, the device will abort the operation and the state of the wel bit will not change. figure 8 - 1. write enable s o s i s c k c s m s b 2 3 1 0 0 0 0 0 0 1 1 0 6 7 5 4 o p c o d e h i g h - i m p e d a n c e cs cs cs cs
22 atmel at25df641 3680f ? dflash ? 4/10 8.2. write disable the write disable command is used to reset the write enable latch (wel) bit in the status register to the logical "0" state. with the wel bit reset, all byte/page program, erase, protect sector, unprotect sector, secto r lockdown, freeze sector lockdown state, program otp security register, and write status register commands will not be executed. other conditions can also cause the wel bit to be reset; for more details, refer to the wel bit section of the status register description. to issue the write disable command, the pin must first be asserted and the opcode of 04h must be clocked into the device. no address bytes need to be clocked into the device, and any data clocked in after the opco de will be ignored. when the pin is deasserted, the wel bit in the status register will be reset to a logical ?0?. the complete opcode must be clocked into the device before the pin is deasserted, a nd the pin must be deasserted on an even byte boundary (multiples of eight bits); otherwise, the device will abort the operation and the state of the wel bit will not change. figure 8 - 2. write disable s o s i s c k c s m s b 2 3 1 0 0 0 0 0 0 1 0 0 6 7 5 4 o p c o d e h i g h - i m p e d a n c e 8.3. protect sector every physical 64 - kby te sector of the device has a corresponding single - bit sector protection register that is used to control the software protection of a sector. upon device power - up, each sector protection register will default to the logical ?1? state indicating that all s ectors are protected and cannot be programmed or erased. issuing the protect sector command to a particular sector address will set the corresponding sector protection register to the logical ?1? state. the following table outlines the two states of the se ctor protection registers. table 8 - 1. sector protection register values value sector protection status 0 sector is unprotected and can be programmed and erased 1 sector is protected and cannot be programmed or erased this is the default state cs cs cs cs
atmel at25df641 23 3680f ? dflash ? 4/10 before the protect s ector command can be issued, the write enable command must have been previously issued to set the wel bit in the status register to a logical ?1?. to issue the protect sector command, the pin must first be asserted and the opco de of 36h must be clocked into the device followed by three address bytes designating any address within the sector to be protected. any additional data clocked into the device will be ignored. when the pin is deasserted, the s ector protection register corresponding to the physical sector addressed by a23 - a0 will be set to the logical ?1? state, and the sector itself will then be protected from program and erase operations. in addition, the wel bit in the status register will be reset back to the logical ?0? state. the complete three address bytes must be clocked into the device before the pin is deasserted, and the pin must be deasserted on an even byte boundary (multiple s of eight bits); otherwise, the device will abort the operation. when the device aborts the protect sector operation, the state of the sector protection register will be unchanged, and the wel bit in the status register will be reset to a logical ?0?. as a safeguard against accidental or erroneous protecting or unprotecting of sectors, the sector protection registers can themselves be locked from updates by using the sprl (sector protection registers locked) bit of the status register ( please refer to the status register commands description for more details). if the sector protection registers are locked, then any attempts to issue the protect sector command will be ignored, and the device will reset the wel bit in the status register back to a logical ?0? and return to the idle state once the pin has been deasserted. figure 8 - 3. protect sector s o s i s c k c s m s b m s b 2 3 1 0 0 0 1 1 0 1 1 0 6 7 5 4 1 0 1 1 9 8 1 2 3 1 2 9 3 0 2 7 2 8 2 6 o p c o d e a a a a a a a a a a a a a d d r e s s b i t s a 2 3 - a 0 h i g h - i m p e d a n c e 8.4. unprotect sector issuing the unprotect sector command to a particular sector address will reset the corr esponding sector protection register to the logical ?0? state (see table 8 - 1 for sector protection register values). every physical sector of the device has a corresponding single - bit sector protection register that is used to control the software protection of a sector. before the unprotect sector command can be issued, the write enable command must have been previously issued to set the wel bit in the status register to a logical ?1?. to issue the unprotect sec tor command, the pin must first be asserted and the opcode of 39h must be clocked into the device. after the opcode has been clocked in, the three address bytes designating any address within the sector to be unprotected must b e clocked in. any additional data clocked into the device after the address bytes will be ignored. when the pin is deasserted, the sector protection register corresponding to the sector addressed by a23 - a0 will be reset to the logical ?0? state, and the sector itself will be unprotected. in addition, the wel bit in the status register will be reset back to the logical ?0? state. cs cs cs cs cs cs cs
24 atmel at25df641 3680f ? dflash ? 4/10 the complete three address bytes must be clocked into the device before the pin is deasserted, and the pin must be deasserted on an even byte boundary (multiples of eight bits); otherwise, the device will abort the operation, the state of the sector protection register will be unchanged, and the we l bit in the status register will be reset to a logical ?0?. as a safeguard against accidental or erroneous locking or unlocking of sectors, the sector protection registers can themselves be locked from updates by using the sprl (sector protection register s locked) bit of the status register (please refer to the status register description for more details). if the sector protection registers are locked, then any attempts to issue the unprotect sector command will be ignored, and the device will reset the w el bit in the status register back to a logical ?0? and return to the idle state once the pin has been deasserted. figure 8 - 4. unprotect sector s o s i s c k c s m s b m s b 2 3 1 0 0 0 1 1 1 0 0 1 6 7 5 4 1 0 1 1 9 8 1 2 3 1 2 9 3 0 2 7 2 8 2 6 o p c o d e a a a a a a a a a a a a a d d r e s s b i t s a 2 3 - a 0 h i g h - i m p e d a n c e 8.5. global protect/unprotect the global protect and global unprotect features can work in conjunc tion with the protect sector and unprotect sector functions. for example, a system can globally protect the entire memory array and then use the unprotect sector command to individually unprotect certain sectors and individually re - protect them later by us ing the protect sector command. likewise, a system can globally unprotect the entire memory array and then individually protect certain sectors as needed. performing a global protect or global unprotect is accomplished by writing a certain combination of d ata to the status register using the write status register byte 1 command (see ? write status register byte 1 ? on page 38 for command execution details). the write status register comma nd is also used to modify the sprl (sector protection registers locked) bit to control hardware and software locking. to perform a global protect, the appropriate pin and sprl conditions must be met, and the system must write a logical ?1? to bits five , four , three , and two of the first byte of the status register. conversely, to perform a global unprotect, the same and sprl conditions must be met but the system must write a logical ?0? to bits five , four , three , and two of the first byte of the status register. table 8 - 1 details the conditions necessary for a global protect or global unprotect to be performed. sectors that have been erase or program suspended must remain in the unprotected state. if a global protect operation is attempted while a sector is erase or program suspended, the protection operation will abort, the protection states of all sectors in the flash memory array will not change, and wel bit in the statu s register will be reset back to a logical ?0?. wp wp cs cs cs
atmel at25df641 25 3680f ? dflash ? 4/10 table 8 - 2. valid sprl and global protect/unprotect conditions state current sprl value new write status register byte 1 data protection operation new sprl value bit 7 6 5 4 3 2 1 0 0 0 0 x 0 0 0 0 x x 0 x 0 0 0 1 x x ? 0 x 1 1 1 0 x x 0 x 1 1 1 1 x x 1 x 0 0 0 0 x x 1 x 0 0 0 1 x x ? 1 x 1 1 1 0 x x 1 x 1 1 1 1 x x global unprotect ? all sector protection registers reset to 0 no change to current protection. no change to current protection. no change to current protec tion. global protect ? all sector protection registers set to 1 global unprotect ? all sector protection registers reset to 0 no change to current protection. no change to current protection. no change to current protection. global protect ? all sector pr otection registers set to 1 0 0 0 0 0 1 1 1 1 1 0 1 x x x x x x x x no change to the current protection level. all sectors currently protected will remain protected and all sectors currently unprotected will remain unprotected. the sector protection reg isters are hard - locked and cannot be changed when the pin is low and the current state of sprl is 1. therefore, a global protect/unprotect will not occur. in addition, the sprl bit cannot be changed (the pin must be high in order to change sprl back to a 0). 1 0 0 x 0 0 0 0 x x 0 x 0 0 0 1 x x ? 0 x 1 1 1 0 x x 0 x 1 1 1 1 x x 1 x 0 0 0 0 x x 1 x 0 0 0 1 x x ? 1 x 1 1 1 0 x x 1 x 1 1 1 1 x x global unprotect ? all sector protection registers reset to 0 no change to current protection. no change to current protection. no change to current protec tion. global protect ? all sector protection registers set to 1 global unprotect ? all sector protection registers reset to 0 no change to current protection. no change to current protection. no change to current protection. global protect ? all sector pr otection registers set to 1 0 0 0 0 0 1 1 1 1 1 1 1 0 x 0 0 0 0 x x 0 x 0 0 0 1 x x ? 0 x 1 1 1 0 x x 0 x 1 1 1 1 x x 1 x 0 0 0 0 x x 1 x 0 0 0 1 x x ? 1 x 1 1 1 0 x x 1 x 1 1 1 1 x x no change to the current protection level. all sectors currently protected will remain protected, and all sectors currently unprotected will remain unprote cted. the sector protection registers are soft - locked and cannot be changed when the current state of sprl is 1. therefore, a global protect/unprotect will not occur. however, the sprl bit can be changed back to a 0 from a 1 since the pin is high. to perform a global protect/unprotect, the write status register command must be issued again after the sprl bit has been changed from a 1 to a 0. 0 0 0 0 0 1 1 1 1 1 essentially, if the sprl bit of the status register is in the lo gical ?0? state (sector protection registers are not locked), then writing a 00h to the first byte of the status register will perform a global unprotect without changing the state of the sprl bit. similarly, writing a 7fh to the first byte of the status r egister will perform a global protect and keep the sprl bit in the logical ?0? state. the sprl bit can, of course, be changed to a logical ?1? by writing an ffh if software - locking or hardware - locking is desired along with the global protect. wp wp wp wp
26 atmel at25df641 3680f ? dflash ? 4/10 if the desire is to only change the sprl bit without performing a global protect or global unprotect, then the system can simply write a 0fh to the first byte of the status register to change the sprl bit from a logical ?1? to a logical ?0? provided the pin is deasserted. likewise, the system can write an f0h to change the sprl bit from a logical ?0? to a logical ?1? without affecting the current sector protection status (no changes will be made to the sector protection registers). when writ ing to the first byt e of the status register, bits five , four , three , and two will not actually be modified but will be decoded by the device for the purposes of the global protect and global unprotect functions. only bit seven , the sprl bit, will actually be modified. therefore, when reading the first byte of the status register, bits five , four , three , and two will not reflect the values written to them but will instead indicate the status of the pin and the sector protection status. please refer to ? status register commands ? on page 34 and table 10 - 1 on page 34 for details on the st atus register format and what values can be read for bits five , four , three , and two . 8.6. read sector protection registers the sector protection registers can be read to determine the current software protection status of each sector. reading the sector protec tion registers, however, will not determine the status of the pin. to read the sector protection register for a particular sector, the pin must first be asserted and the opcode of 3ch must be clocke d in. once the opcode has been clocked in, three address bytes designating any address within the sector must be clocked in. after the last address byte has been clocked in, the device will begin outputting data on the so pin during every subsequent clock cycle. the data being output will be a repeating byte of either ffh or 00h to denote the value of the appropriate sector protection register. at clock frequencies above f clk , the first byte of data output will not be valid. therefore, if operating at clock frequencies above f clk , at least two bytes of data must be clocked out from the device in order to determine the correct status of the appropriate sector protection register. table 8 - 3. read sector protection register - output data output data sector protection regi ster value 00h sector protection register value is 0 (sector is unprotected) ffh sector protection register value is 1 (sector is protected) deasserting the pin will terminate the read operation and put the so pin into a hi gh- impedance state. the pin can be deasserted at any time and does not require that a full byte of data be read. in addition to reading the individual sector protection registers, the software protection status (swp) bits in th e status register can be read to determine if all, some, or none of the sectors are software protected (refer to ? read status register ? on page 34 for more details). cs cs cs wp wp wp
atmel at25df641 27 3680f ? dflash ? 4/10 figure 8 - 5. read sector protec tion register s o s i s c k c s m s b m s b 2 3 1 0 0 0 1 1 1 1 0 0 6 7 5 4 1 0 1 1 9 8 1 2 3 7 3 8 3 3 3 6 3 5 3 4 3 1 3 2 2 9 3 0 3 9 4 0 o p c o d e a a a a a a a a a m s b m s b d d d d d d d d d d a d d r e s s b i t s a 2 3 - a 0 d a t a b y t e h i g h - i m p e d a n c e 8.7. protected states and the write protect ( ) pin the pin is not linked to the memory array itself and has no direct effect on the protection status or lockdown status of the memory array . instead, the pin, in conjunction with the sprl (sector protection registers locked) bit in the status register, is used to control the hardware locking mechanism of the device. for hardware locking to be active, two condition s must be met - the pin must be asserted and the sprl bit must be in the logical ?1? state. when hardware locking is active, the sector protection registers are locked and the sprl bit itself is also locked. therefore, sectors th at are protected will be locked in the protected state, and sectors that are unprotected will be locked in the unprotected state. these states cannot be changed as long as hardware locking is active, so the protect sector, unprotect sector, and write statu s register commands will be ignored. in order to modify the protection status of a sector, the pin must first be deasserted, and the sprl bit in the status register must be reset back to the logical ?0? state using the write st atus register command. when resetting the sprl bit back to a logical ?0?, it is not possible to perform a global protect or global unprotect at the same time since the sector protection registers remain soft - locked until after the write status register com mand has been executed. if the pin is permanently connected to gnd, then once the sprl bit is set to a logical ?1?, the only way to reset the bit back to the logical ?0? state is to power - cycle the device. this allows a system to power - up with all sectors software protected but not hardware locked. therefore, sectors can be unprotected and protected as needed and then hardware locked at a later time by simply setting the sprl bit in the status register. when the pin is deasserted, or if the pin is permanently connected to v cc , the sprl bit in the status register can still be set to a logical ?1? to lock the sector protection registers. this provides a software locking abil ity to prevent erroneous protect sector or unprotect sector commands from being processed. when changing the sprl bit to a logical ?1? from a logical ?0?, it is also possible to perform a global protect or global unprotect at the same time by writing the a ppropriate values into bits five , four , three , and two of the first byte of the status register. table 8 - 1 and table 8 - 2 detail the various protection and locking sta tes of the device. table 8 - 4. sector protection register states sector protection register n (1) sector n (1) x (don't care) 0 unprotected 1 protected note: 1. ?n? represents a sec tor number . w p w p wp wp wp wp wp wp wp
28 atmel at25df641 3680f ? dflash ? 4/10 table 8 - 5. hardware and software locking sprl locking sprl change allowed sector protection registers 0 0 can be modified from 0 to 1 unlocked and modifiable using the protect and unprotect sector commands. global protect a nd unprotect can also be performed. 0 1 hardware locked locked locked in current state. protect and unprotect sector commands will be ignored. global protect and unprotect cannot be performed. 1 0 can be modified from 0 to 1 unlocked and modifiable us ing the protect and unprotect sector commands. global protect and unprotect can also be performed. 1 1 software locked can be modified from 1 to 0 locked in current state. protect and unprotect sector commands will be ignored. global protect and unprot ect cannot be performed. 9. security commands 9.1. sector lockdown certain applications require that portions of the flash memory array be permanently protected against malicious attempts at altering program code, data modules, security information, or encryption /decryption algorithms, keys, and routines. to address these applications, the device incorporates a sector lockdown mechanism that allows any combination of individual 64 - kbyte sectors to be permanently locked so that they become read only. once a sector is locked down, it can never be erased or programmed again, and it can never be unlocked from the locked down state. each 64 - kbyte physical sector has a corresponding single - bit sector lockdown register that is used to control the lockdown status of that s ector. these registers are nonvolatile and will retain their state even after a device power - cycle or reset operation. the following table outlines the two states of the sector lockdown registers. table 9 - 1. sector lockdown register values value sector lockdown statu s 0 sector is not locked down and can be programmed and erased. this is the default state. 1 sector is permanently locked down and can never be programmed or erased again. issuing the sector lockdown command to a particular sector address will set the corresponding sector lockdown register to the logical ?1? state. each sector lockdown register can only be set once; therefore, once set to the logical ?1? state, a sector lockdown register cannot be reset back to the logical ?0? state. w p
atmel at25df641 29 3680f ? dflash ? 4/10 before the sector lockdown command can be issued, the write enable command must have been previously issued to set the wel bit in the status register to a logical ?1?. in addition, the sector lockdown enabled (sle) bit in the status register must have also been previously s et to the logical ?1? state by using the write status register byte 2 command (see ? write status register byte 2 ? on page 39 ). to issue the sector lockdown command, the pin must first be asserted and the opcode of 33h must be clocked into the device followed by three address bytes designating any address within the 64 - kbyte sector to be locked down. after the three address bytes have been clocked in, a confi rmation byte of d0h must also be clocked in immediately following the three address bytes. any additional data clocked into the device after the first byte of data will be ignored. when the pin is deasserted, the sector lockdow n register corresponding to the sector addressed by a23 - a0 will be set to the logical ?1? state, and the sector itself will then be permanently locked down from program and erase operations within a time of t lock . in addition, the wel bit in the status re gister will be reset back to the logical ?0? state. the complete three address bytes and the correct confirmation byte value of d0h must be clocked into the device before the pin is deasserted, and the pin must be deasserted on an even byte boundary (multiples of eight bits); otherwise, the device will abort the operation. when the device aborts the sector lockdown operation, the state of the corresponding sector lockdown register as well as the sle bit in the status register will be unchanged; however, the wel bit in the status register will be reset to a logical ?0?. as a safeguard against accidental or erroneous locking down of sectors, the sector lockdown command can be enabled and disabled as nee ded by using the sle bit in the status register. in addition, the current sector lockdown state can be frozen so that no further modifications to the sector lockdown registers can be made (see ? freeze sector lockdo wn state ? ). if the sector lockdown command is disabled or if the sector lockdown state is frozen, then any attempts to issue the sector lockdown command will be ignored, and the device will reset the wel bit in the status register back to a logical ?0? an d return to the idle state once the pin has been deasserted. figure 9 - 1. sector lockdown s o s i s c k c s m s b m s b 2 3 1 0 0 0 1 1 0 0 1 1 6 7 5 4 9 8 3 9 3 7 3 8 3 3 3 6 3 5 3 4 3 1 3 2 2 9 3 0 o p c o d e h i g h - i m p e d a n c e a a a a a a m s b 1 1 0 1 0 0 0 0 a d d r e s s b i t s a 2 3 - a 0 c o n f i r m a t i o n b y t e i n cs cs cs cs cs
30 atmel at25df641 3680f ? dflash ? 4/10 9.2. freeze sector lockdown state the current sector lockdown state can be permanently frozen so that no further modifications to the sector lockdown registers can be made; therefore, the sector lockdown command will be permanently disabled, and no additional sectors can be locked down aside from those already locked down. any attempts to issue the sector lockdown command after the sector lockdown stat e has been frozen will be ignored. before the freeze sector lockdown state command can be issued, the write enable command must have been previously issued to set the wel bit in the status register to a logical ?1?. in addition, the sector lockdown enabled (sle) bit in the status register must have also been previously set to the logical ?1? state. to issue the freeze sector lockdown state command, the pin must first be asserted and the opcode of 34h must be clocked into the dev ice followed by three command specific address bytes of 55aa40h. after the three address bytes have been clocked in, a confirmation byte of d0h must be clocked in immediately following the three address bytes. any additional data clocked into the device w ill be ignored. when the pin is deasserted, the current sector lockdown state will be permanently frozen within a time of t lock . in addition, the wel bit in the status register will be reset back to the logical ?0? state, and t he sle bit will be permanently reset to a logical ?0? to indicate that the sector lockdown command is permanently disabled. the complete and correct three address bytes and the confirmation byte must be clocked into the device before the pin is deasserted, and the pin must be deasserted on an even byte boundary (multiples of eight bits); otherwise, the device will abort the operation. when the device aborts the freeze sector lockdown state operation, the wel bit in the status register will be reset to a logical ?0?; however, the state of the sle bit will be unchanged. figure 9 - 2. freeze sector lockdown state s o s i s c k c s m s b m s b 2 3 1 0 0 0 1 1 0 1 0 0 6 7 5 4 9 8 3 9 3 7 3 8 3 3 3 6 3 5 3 4 3 1 3 2 2 9 3 0 o p c o d e h i g h - i m p e d a n c e 0 1 0 0 0 0 m s b 1 1 0 1 0 0 0 0 a d d r e s s b i t s a 2 3 - a 0 c o n f i r m a t i o n b y t e i n cs cs cs cs
atmel at25df641 31 3680f ? dflash ? 4/10 9.3. read sector lockdown registers the sector lockdown registers can be read to determine the current lockdown status of each physical 64 - kbyte sector. to read the sector lockdown register for a particular 64 - kbyte sector, the pin must first be asserted and the opcode of 35h must be clocked in. once the opcode has been clocked in, three address bytes designating any address within the 64 - kbyte sector must be clocked in. after the address bytes have been clocked in, data will be output on the so pin during every subsequent clock cycle. the data being output will be a repeating by te of either ffh or 00h to denote the value of the appropriate sector lockdown register. at clock frequencies above f clk , the first byte of data output will not be valid. therefore, if operating at clock frequencies above f clk , at least two bytes of data m ust be clocked out from the device in order to determine the correct status of the appropriate sector lockdown register. table 9 - 3. read sector lockdown register ? output data output data sector lockdown register value 00h sector lockdown register value is 0 (sector is not locked down) ffh sector lockdown register value is 1 (sector is permanently locked down) deasserting the pin will terminate the read operation and put the so pin into a high - impedance state. the pin can be deasserted at any time and does not require that a full byte of data be read . figure 9 - 3. read sector lockdown register s o s i s c k c s m s b m s b 2 3 1 0 0 0 1 1 0 1 0 1 6 7 5 4 1 0 1 1 9 8 1 2 3 9 4 2 4 3 4 1 4 0 3 7 3 8 3 3 3 6 3 5 3 4 3 1 3 2 2 9 3 0 4 4 4 7 4 8 4 6 4 5 o p c o d e a a a a a a a a a m s b x x x x x x x x m s b m s b d d d d d d d d d d a d d r e s s b i t s a 2 3 - a 0 d o n ' t c a r e d a t a b y t e h i g h - i m p e d a n c e 9.4. program otp security register the device contains a specialized otp (one - time programmable) security register that can be used for purposes such as unique device serialization, system - level electronic serial number (esn) storage, locked key storage, etc. the otp security register is independent of the main flash memory array and is comprised of a total of 128 - bytes of memory divid ed into two portions. the first 64 - bytes (byte locations 0 through 63) of the otp security register are allocated as a one - time user - programmable space. once these 64 - bytes have been programmed, they cannot be erased or reprogrammed. the remaining 64 - bytes of the otp security register (byte locations 64 through 127) are factory programmed by atmel and will contain a unique value for each device. the factory programmed data is fixed and cannot be changed. cs cs cs
32 atmel at25df641 3680f ? dflash ? 4/10 table 9 - 4. otp security register security register byte number 0 1 . . . 62 63 64 65 . . . 126 127 one - time user programmable factory programmed by atmel the user - programmable portion of the otp security register does not need to be erased before it is programmed. in addition, the program otp security register comm and operates on the entire 64 - byte user - programmable portion of the otp security register at one time. once the user - programmable space has been programmed with any number of bytes, the user - programmable space cannot be programmed again; therefore, it is n ot possible to only program the first two bytes of the register and then program the remaining 62 - bytes at a later time. before the program otp security register command can be issued, the write enable command must have been previously issued to set the we l bit in the status register to a logical ?1?. to program the otp security register, the pin must first be asserted and an opcode of 9bh must be clocked into the device followed by the three address bytes denoting the first byt e location of the otp security register to begin programming at. since the size of the user - programmable portion of the otp security register is 64 - bytes, the upper order address bits do not need to be decoded by the device. therefore, address bits a23 - a6 will be ignored by the device and their values can be either a logical ?1? or ?0?. after the address bytes have been clocked in, data can then be clocked into the device and will be stored in the internal buffer. if the starting memory address denoted by a 23- a0 does not start at the beginning of the otp security register memory space (a5 - a0 are not all 0), then special circumstances regarding which otp security register locations to be programmed will apply. in this situation, any data that is sent to the d evice that goes beyond the end of the 64- byte user - programmable space will wrap around back to the beginning of the otp security register. for example, if the starting address denoted by a23 - a0 is 00003eh, and three bytes of data are sent to the device, th en the first two bytes of data will be programmed at otp security register addresses 00003eh and 00003fh while the last byte of data will be programmed at address 000000h. the remaining bytes in the otp security register (addresses 000001h through 00003dh) will not be programmed and will remain in the erased state (ffh). in addition, if more than 64 - bytes of data are sent to the device, then only the last 64 - bytes sent will be latched into the internal buffer. when the pin is de asserted, the device will take the data stored in the internal buffer and program it into the appropriate otp security register locations based on the starting address specified by a23 - a0 and the number of data bytes sent to the device. if less than 64 - by tes of data were sent to the device, then the remaining bytes within the otp security register will not be programmed and will remain in the erased state (ffh). the programming of the data bytes is internally self - timed and should take place in a time of t otpp . it is not possible to suspend the programming of the otp security register. the three address bytes and at least one complete byte of data must be clocked into the device before the pin is deasserted, and the pin must be deasserted on even byte boundaries (multiples of eight bits); otherwise, the device will abort the operation and the user - programmable portion of the otp security register will not be programmed. the wel bit in the status regi ster will be reset back to the logical ?0? state if the otp security register program cycle aborts due to an incomplete address being sent, an incomplete byte of data being sent, the pin being deasserted on uneven byte boundari es, or because the user - programmable portion of the otp security register was previously programmed. while the device is programming the otp security register, the status register can be read and will indicate that the device is busy. for faster throughput , it is recommended that the status register be polled rather than waiting the t otpp time to determine if the data bytes have finished programming. at some point before the otp security register programming completes, the wel bit in the status register wil l be reset back to the logical ?0? state. cs cs cs cs cs
atmel at25df641 33 3680f ? dflash ? 4/10 if the device is powered - down during the otp security register program cycle, then the contents of the 64 - byte user programmable portion of the otp security register cannot be guaranteed and cannot be programmed ag ain. the program otp security register command utilizes the internal 256 - buffer for processing. therefore, the contents of the buffer will be altered from its previous state when this command is issued. figure 9 - 4. program otp security register s o s i s c k c s m s b m s b 2 3 1 0 1 0 0 1 1 0 1 1 6 7 5 4 9 8 3 9 3 7 3 8 3 3 3 6 3 5 3 4 3 1 3 2 2 9 3 0 o p c o d e h i g h - i m p e d a n c e a a a a a a m s b d d d d d d d d a d d r e s s b i t s a 2 3 - a 0 d a t a i n b y t e 1 m s b d d d d d d d d d a t a i n b y t e n 9.5. read otp security re gister the otp security register can be sequentially read in a similar fashion to the read array operation up to the maximum clock frequency specified by f max . to read the otp security register, the pin must first be asserted a nd the opcode of 77h must be clocked into the device. after the opcode has been clocked in, the three address bytes must be clocked in to specify the starting address location of the first byte to read within the otp security register. following the three address bytes, two dummy bytes must be clocked into the device before data can be output. after the three address bytes and the dummy bytes have been clocked in, additional clock cycles will result in otp security register data being output on the so pin. when the last byte (00007fh) of the otp security register has been read, the device will continue reading back at the beginning of the register (000000h). no delays will be incurred when wrapping around from the end of the register to the beginning of the register. deasserting the pin will terminate the read operation and put the so pin into a high - impedance state. the pin can be deasserted at any time and does not require that a full byte of data be read. figure 9 - 5. read otp security register s o s i s c k c s m s b m s b 2 3 1 0 0 1 1 1 0 1 1 1 6 7 5 4 1 0 1 1 9 8 1 2 3 3 3 6 3 5 3 4 3 1 3 2 2 9 3 0 o p c o d e a a a a a a a a a x x x m s b m s b d d d d d d d d d d a d d r e s s b i t s a 2 3 - a 0 m s b x x x x x x d o n ' t c a r e d a t a b y t e 1 h i g h - i m p e d a n c e cs cs cs
34 atmel at25df641 3680f ? dflash ? 4/10 10. status register commands 10.1. read status register the two - byte status register can be read to determine the device?s ready/busy status, as well as the status of many other functions such as hardware locking and software pr otection. the status register can be read at any time, including during an internally self - timed program or erase operation. to read the status register, the pin must first be asserted and the opcode of 05h must be clocked into the device. after the opcode has been clocked in, the device will begin outputting status register data on the so pin during every subsequent clock cycle. after the second byte of the status register has been clocked out, the sequence will repeat itself s tarting again with the first byte of the status register as long as the pin remains asserted and the clock pin is being pulsed. the data in the status register is constantly being updated, so each repeating sequence will output new data. the rdy/bsy status is available for both bytes of the status register and is updated for each byte. at clock frequencies above f clk , the first two bytes of data output from the status register will not be valid. therefore, if operating at clock frequencies above f clk , at least four bytes of data must be clocked out from the device in order to read the correct values of both bytes of the status register. deasserting the pin will terminate the read status register opera tion and put the so pin into a high - impedance state. the pin can be deasserted at any time and does not require that a full byte of data be read. table 10 - 1. status register format ? byte 1 bit (1) name type (2) description 7 sprl sector p rotection registers locked r/w 0 sector protection registers are unlocked (default) 1 sector protection registers are locked 6 res reserved for future use r 0 reserved for future use 5 epe erase/program error r 0 erase or program operation was succe ssful 1 erase or program error detected 4 wpp write protect ( ) pin status r 0 is asserted 1 is deasserted 3:2 swp software protection status r 00 all sectors are software unprotected (all sector protection registers are 0) 01 some sectors are software protected read individual sector protection registers to determine which sectors are protected 10 reserved for future use 11 all sectors are softw are protected (all sector protection registers are 1 ? default) 1 wel write enable latch status r 0 device is not write enabled (default) 1 device is write enabled 0 rdy/bsy ready/busy status r 0 device is ready 1 device is busy with an interna l operation notes: 1. only bit 7 of status register byte 1 will be modified when using the write status register byte 1 command 2. r/w = readable and writeable r = readable only wp wp wp cs cs cs cs
atmel at25df641 35 3680f ? dflash ? 4/10 table 10 - 2. status register format ? byte 2 bit (1) name type (2) description 7 res re served for future use r 0 reserved for future use. 6 res reserved for future use r 0 reserved for future use. 5 res reserved for future use r 0 reserved for future use. 4 rste reset enabled r/w 0 reset command is disabled (default). 1 reset command is enabled. 3 sle sector lockdown enabled r/w 0 sector lockdown and freeze sector lockdown state commands are disabled (default). 1 sector lockdown and freeze sector lockdown state commands are enabled. 2 ps program suspend status r 0 no sectors ar e program suspended (default). 1 a sector is program suspended. 1 es erase suspend status r 0 no sectors are erase suspended (default). 1 a sector is erase suspended. 0 rdy/bsy ready/busy status r 0 device is ready. 1 device is busy with a n internal operation. notes: 1. only bits 4 and 3 of status register byte 2 will be modified when using the write status register byte 2 command 2. r/w = readable and writeable r = readable only 10.1.1. sprl bit the sprl bit is used to control whether the sec tor protection registers can be modified or not. when the sprl bit is in the logical ?1? state, all sector protection registers are locked and cannot be modified with the protect sector and unprotect sector commands (the device will ignore these commands) . in addition, the global protect and global unprotect features cannot be performed. any sectors that are presently protected will remain protected, and any sectors that are presently unprotected will remain unprotected. when the sprl bit is in the logical ?0? state, all sector protection registers are unlocked and can be modified (the protect sector and unprotect sector commands, as well as the global protect and global unprotect features, will be processed as normal). the sprl bit defaults to the logical ?0? state after device power - up. the reset command has no effect on the sprl bit. the sprl bit can be modified freely whenever the pin is deasserted. however, if the pin is asserted, then the sprl b it may only be changed from a logical ?0? (sector protection registers are unlocked) to a logical ?1? (sector protection registers are locked). in order to reset the sprl bit back to a logical ?0? using the write status register byte 1 command, the pin will have to first be deasserted. the sprl bit is the only bit of status register byte 1 that can be user modified via the write status register byte 1 command. wp wp wp
36 atmel at25df641 3680f ? dflash ? 4/10 10.1.2. epe bit the epe bit indicates whether the last erase or program opera tion completed successfully or not. if at least one byte during the erase or program operation did not erase or program properly, then the epe bit will be set to the logical ?1? state. the epe bit will not be set if an erase or program operation aborts for any reason such as an attempt to erase or program a protected region or a locked down sector, an attempt to erase or program a suspended sector, or if the wel bit is not set prior to an erase or program operation. the epe bit will be updated after every e rase and program operation. 10.1.3. wpp bit the wpp bit can be read to determine if the pin has been asserted or not. 10.1.4. swp bits the swp bits provide feedback on the software protection status for the device. there are three possible com binations of the swp bits that indicate whether none, some, or all of the sectors have been protected using the protect sector command or the global protect feature. if the swp bits indicate that some of the sectors have been protected, then the individual sector protection registers can be read with the read sector protection registers command to determine which sectors are in fact protected. 10.1.5. wel bit the wel bit indicates the current status of the internal write enable latch. when the wel bit is in the log ical ?0? state, the device will not accept any byte/page program, erase, protect sector, unprotect sector, sector lockdown, freeze sector lockdown state, program otp security register, or write status register commands. the wel bit defaults to the logical ?0? state after a device power - up or reset operation. in addition, the wel bit will be reset to the logical ?0? state automatically under the following conditions: ? write disable operation completes successfully ? write status register operation completes suc cessfully or aborts ? protect sector operation completes successfully or aborts ? unprotect sector operation completes successfully or aborts ? sector lockdown operation completes successfully or aborts ? freeze sector lockdown state operation completes successful ly or aborts ? program otp security register operation completes successfully or aborts ? byte/page program operation completes successfully or aborts ? block erase operation completes successfully or aborts ? chip erase operation completes successfully or aborts ? hold condition aborts if the wel bit is in the logical ?1? state, it will not be reset to a logical ?0? if an operation aborts due to an incomplete or unrecognized opcode being clocked into the device before the pin is deassert ed. in order for the wel bit to be reset when an operation aborts prematurely, the entire opcode for a byte/page program, erase, protect sector, unprotect sector, sector lockdown, freeze sector lockdown state, program otp security register, or write status register command must have been clocked into the device. cs wp
atmel at25df641 37 3680f ? dflash ? 4/10 10.1.6. rste bit the rste bit is used to enable or disable the reset command. when the rste bit is in the logical ?0? state (the default state after power - up), the reset command is disabled and any attemp ts to reset the device using the reset command will be ignored. when the rste bit is in the logical ?1? state, the reset command is enabled. the rste bit will retain its state as long as power is applied to the device. once set to the logical ?1? state, th e rste bit will remain in that state until it is modified using the write status register byte 2 command or until the device has been power cycled. the reset command itself will not change the state of the rste bit. 10.1.7. sle bit the sle bit is used to enable an d disable the sector lockdown and freeze sector lockdown state commands. when the sle bit is in the logical ?0? state (the default state after power - up), the sector lockdown and freeze sector lockdown commands are disabled. if the sector lockdown and free ze sector lockdown commands are disabled, then any attempts to issue the commands will be ignored. this provides a safeguard for these commands against accidental or erroneous execution. when the sle bit is in the logical ?1? state, the sector lockdown and freeze sector lockdown state commands are enabled. unlike the wel bit, the sle bit does not automatically reset after certain device operations. therefore, once set, the sle bit will remain in the logical ?1? state until it is modified using the write sta tus register byte 2 command or until the device has been power cycled. the reset command has no effect on the sle bit. if the freeze sector lockdown state command has been issued, then the sle bit will be permanently reset in the logical ?0? state to indic ate that the sector lockdown command has been disabled. 10.1.8. ps bit the ps bit indicates whether or not a sector is in the program suspend state. 10.1.9. es bit the es bit indicates whether or not a sector is in the erase suspend state. 10.1.10. rdy /bsy bit the rdy/bsy bit is u sed to determine whether or not an internal operation, such as a program or erase, is in progress. to poll the rdy/bsy bit to detect the completion of a program or erase cycle, new status register data must be continually clocked out of the device until th e state of the rdy/bsy bit changes from a logical ?1? to a logical ?0?. figure 10 - 1. read status register s o s i s c k c s m s b 2 3 1 0 0 0 0 0 0 1 0 1 6 7 5 4 1 0 1 1 9 8 1 2 2 1 2 2 1 7 2 0 1 9 1 8 1 5 1 6 1 3 1 4 2 3 2 4 2 8 2 9 2 7 2 6 2 5 3 0 o p c o d e m s b m s b d d d d d d d d d d m s b d d d d d d d d d d d d d d s t a t u s r e g i s t e r b y t e 1 s t a t u s r e g i s t e r b y t e 1 s t a t u s r e g i s t e r b y t e 2 h i g h - i m p e d a n c e
38 atmel at25df641 3680f ? dflash ? 4/10 10.2. write status register byte 1 the write status register byte 1 command is used to modify the sprl bit of the status register and/or to perform a global protect or global unprotect operation. before the write status register byte 1 command can be issued, the write enable command must have been previously issued to set the wel bit in the status register to a logical ?1?. to issue the write status register byte 1 comm and, the pin must first be asserted and the opcode of 01h must be clocked into the device followed by one byte of data. the one byte of data consists of the sprl bit value, a don?t care bit, four data bits to denote whether a g lobal protect or unprotect should be performed, and two additional don?t care bits (see table 10 - 1 ). any additional data bytes that are sent to the device will be ignored. when the p in is deasserted, the sprl bit in the status register will be modified, and the wel bit in the status register will be reset back to a logical ?0?. the values of bits five , four , three , and two and the state of the sprl bit before the write status register byte 1 command was executed (the prior state of the sprl bit) will determine whether or not a global protect or global unpro tect will be performed. please refer to ? global protect/unprotect ? on page 24 for more details. the complete one byte of data must be clocked into the device before the pin is deasserted, and the pin must be deasserted on even byte boundaries (multiples of eight bits); otherwise, the device will abort the operation, the state of the sprl bit will not change, no potential global protect or unprotect will be performed, and the wel bit in the status register will be reset back to the logical ?0? state. if the pin is asserted, then the sprl bit can only be set to a logical ?1?. if an attempt is made to reset the sprl bit to a logical ?0? while the pin is asserted, then the write status register byte 1 com mand will be ignored, and the wel bit in the status register will be reset back to the logical ?0? state. in order to reset the sprl bit to a logical ?0?, the pin must be deasserted. table 10 - 3. write status register byte 1 format bit 7 bi t 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 sprl x global protect/unprotect x x figure 10 - 2. write status register byte 1 s o s i s c k c s m s b 2 3 1 0 0 0 0 0 0 0 0 6 7 5 4 o p c o d e 1 0 1 1 9 8 1 4 1 5 1 3 1 2 1 m s b d x d d d d x x s t a t u s r e g i s t e r i n b y t e 1 h i g h - i m p e d a n c e wp wp wp cs cs cs cs
atmel at25df641 39 3680f ? dflash ? 4/10 10.3. write status register byte 2 the write status register byte 2 command is used to modify the rste and sle bits of the status register. using the wri te status register byte 2 command is the only way to modify the rste and sle bits in the status register during normal device operation, and the sle bit can only be modified if the sector lockdown state has not been frozen. before the write status register byte 2 command can be issued, the write enable command must have been previously issued to set the wel bit in the status register to a logical ?1?. to issue the write status register byte 2 command, the pin must first be asser ted and the opcode of 31h must be clocked into the device followed by one byte of data. the one byte of data consists of three don?t care bits, the rste bit value, the sle bit value, and three additional don?t care bits (see table 10 - 1 ). any additional data bytes that are sent to the device will be ignored. when the pin is deasserted, the rste and sle bits in the status register will be modified, and the wel bit in the status register will be reset back to a logical ?0?. the sle bit will only be modified if the freeze sector lockdown state command has not been previously issued. the complete one byte of data must be clocked into the device before the pin is deasserted, and the pin must be deasserted on even byte boundaries (multiples of eight bits); otherwise, the device will abort the operation, the state of the rste and sle bits will not change, and the wel bit in the status re gister will be reset back to the logical ?0? state. table 10 - 4. write status register byte 2 format bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 x x x rste sle x x x figure 10 - 3. write status register byte 2 s o s i s c k c s m s b 2 3 1 0 0 0 1 1 0 0 0 6 7 5 4 o p c o d e 1 0 1 1 9 8 1 4 1 5 1 3 1 2 1 m s b x x x d d x x x s t a t u s r e g i s t e r i n b y t e 2 h i g h - i m p e d a n c e cs cs cs cs
40 atmel at25df641 3680f ? dflash ? 4/10 11. other commands and functions 11.1. reset in some applications, it ma y be necessary to prematurely terminate a program or erase cycle early rather than wait the hundreds of microseconds or milliseconds necessary for the program or erase operation to complete normally. the reset command allows a program or erase operation in progress to be ended abruptly and returns the device to an idle state. since the need to reset the device is immediate, the write enable command does not need to be issued prior to the reset command being issued. therefore, the reset command operates inde pendently of the state of the wel bit in the status register. the reset command can only be executed if the command has been enabled by setting the reset enabled (rste) bit in the status register to a logical ?1?. if the reset command has not been enabled (the rste bit is in the logical ?0? state), then any attempts at executing the reset command will be ignored. to perform a reset, the pin must first be asserted and the opcode of f0h must be clocked into the device. no address bytes need to be clocked in, but a confirmation byte of d0h must be clocked into the device immediately after the opcode. any additional data clocked into the device after the confirmation byte will be ignored. when the pin is deasserted, the program or erase operation currently in progress will be terminated within a time of t rst . since the program or erase operation may not complete before the device is reset, the contents of the page being programmed or the block being erased cannot be guaranteed to be valid. the reset command has no effect on the states of the sector protection registers, the sector lockdown registers, or the sprl, rste, and sle bits in the status register. the wel, ps, and es bits, however, will be reset bac k to their default states. if a reset operation is performed while a sector is erase suspended, the suspend operation will abort, and the contents of the block being erased in the suspended sector will be left in an undefined state. if a reset is performed while a sector is program suspended, the suspend operation will abort, and the contents of the page that was being programmed and subsequently suspended will be undefined. the remaining pages in the 64 - kbyte sector will retain their previous contents. the complete opcode and confirmation byte must be clocked into the device before the pin is deasserted, and the pin must be deasserted on an even byte boundary (multiples of eight bits); otherwise, no reset operation will be performed. figure 11 - 1. reset s o s i s c k c s m s b 2 3 1 0 1 1 1 1 0 0 0 6 7 5 4 o p c o d e c o n f i r m a t i o n b y t e i n 1 0 1 1 9 8 1 4 1 5 1 3 1 2 0 m s b 1 1 0 1 0 0 0 0 h i g h - i m p e d a n c e cs cs cs cs
atmel at25df641 41 3680f ? dflash ? 4/10 11.2. read manufacturer and device id identification information can be read from the device to enable systems to electronically query and identify the device while it is in system. the identification method and the com mand opcode comply with the jedec standard for ?manufacturer and device id read methodology for spi compatible serial interface memory devices?. the type of information that can be read from the device includes the jedec defined manufacturer id, the vendor specific device id, and the vendor specific extended device information. the read manufacturer and device id command is limited to a maximum clock frequency of f clk . since not all flash devices are capable of operating at very high clock frequencies, appl ications should be designed to read the identification information from the devices at a reasonably low clock frequency to ensure that all devices to be used in the application can be identified properly. once the identification process is complete, the ap plication can then increase the clock frequency to accommodate specific flash devices that are capable of operating at the higher clock frequencies. to read the identification information, the pin must first be asserted and the opcode of 9fh must be clocked into the device. after the opcode has been clocked in, the device will begin outputting the identification data on the so pin during the subsequent clock cycles. the first byte that will be output will be the manufacturer id followed by two bytes of device id information. the fourth byte output will be the extended device information string length, which will be 00h indicating that no extended device information follows. after the extended device information string length byte is output, the so pin will go into a high - impedance state; therefore, additional clock cycles will have no affect on the so pin and no data will be output. as indicated in the jedec standard, reading the extended device information string length and any s ubsequent data is optional. deasserting the pin will terminate the manufacturer and device id read operation and put the so pin into a high - impedance state. the pin can be deasserted at any time and does not require that a full byte of data be read. table 11 - 1. manufacturer and device id information byte no. data type value 1 manufacturer id 1fh 2 device id (part 1) 48h 3 device id (part 2) 00h 4 extended device information string length 00h table 11 - 2. manufacturer an d device id details data type bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 hex value details manufacturer id jedec assigned code 1fh jedec code: 0001 1111 (1fh for atmel) 0 0 0 1 1 1 1 1 device id (part 1) family code density code 48h family code: 010 (at25df/26dfxxx series) density code: 01000 (64 - mbit) 0 1 0 0 1 0 0 0 device id (part 2) sub code product version code 00h sub code: 000 (standard series) product version: 00000 (initial version) 0 0 0 0 0 0 0 0 cs cs cs
42 atmel at25df641 3680f ? dflash ? 4/10 figure 11 - 2. read manufacturer and device id s o s i s c k c s 6 0 9 f h 8 7 3 8 o p c o d e 1 f h 4 8 h 0 0 h 0 0 h m a n u f a c t u r e r i d d e v i c e i d b y t e 1 d e v i c e i d b y t e 2 e x t e n d e d d e v i c e i n f o r m a t i o n s t r i n g l e n g t h h i g h - i m p e d a n c e 1 4 1 6 1 5 2 2 2 4 2 3 3 0 3 2 3 1 note: each transition shown for si and so represents one byte (8- bits) .
atmel at25df641 43 3680f ? dflash ? 4/10 11.3. deep power - down during normal operation, the device will be placed in the standby mode to consume less power as long as the pin remains deasserted and no internal operation is in progress. the deep power - down command offers the ability to place the device into an even lower power consumption state called the deep power - down mode. when the device is in the deep power - down mo de, all commands including the read status register command will be ignored with the exception of the resume from deep power - down command. since all commands will be ignored, the mode can be used as an extra protection mechanism against program and erase o perations. entering the deep power - down mode is accomplished by simply asserting the pin, clocking in the opcode of b9h, and then deasserting the pin. any additional data clocked into the device aft er the opcode will be ignored. when the pin is deasserted, the device will enter the deep power - down mode within the maximum time of t edpd . the complete opcode must be clocked in before the pin is d easserted, and the pin must be deasserted on an even byte boundary (multiples of eight bits); otherwise, the device will abort the operation and return to the standby mode once the pin is deasserted . in addition, the device will default to the standby mode after a power - cycle. the deep power - down command will be ignored if an internally self - timed operation such as a program or erase cycle is in progress. the deep power - down command must be reissued after the internally self - timed operation has been completed in order for the device to enter the deep power - down mode. figure 11 - 3. deep power - down s o s i s c k c s m s b 2 3 1 0 1 0 1 1 1 0 0 1 6 7 5 4 o p c o d e h i g h - i m p e d a n c e s t a n d b y m o d e c u r r e n t a c t i v e c u r r e n t d e e p p o w e r - d o w n m o d e c u r r e n t t e d p d i c c cs cs cs cs cs cs cs
44 atmel at25df641 3680f ? dflash ? 4/10 11.4. resume from deep power - down in order to exit the deep power - down mode and resume normal device operation, the res ume from deep power - down command must be issued. the resume from deep power - down command is the only command that the device will recognized while in the deep power - down mode. to resume from the deep power - down mode, the pin mu st first be asserted and opcode of abh must be clocked into the device. any additional data clocked into the device after the opcode will be ignored. when the pin is deasserted, the device will exit the deep power - down mode wit hin the maximum time of t rdpd and return to the standby mode. after the device has returned to the standby mode, normal command operations such as read array can be resumed. if the complete opcode is not clocked in before the p in is deasserted, or if the pin is not deasserted on an even byte boundary (multiples of eight bits), then the device will abort the operation and return to the deep power - down mode. figure 11 - 4. resume from deep power - down s o s i s c k c s i c c m s b 2 3 1 0 1 0 1 0 1 0 1 1 6 7 5 4 o p c o d e h i g h - i m p e d a n c e d e e p p o w e r - d o w n m o d e c u r r e n t a c t i v e c u r r e n t s t a n d b y m o d e c u r r e n t t r d p d cs cs cs cs
atmel at25df641 45 3680f ? dflash ? 4/10 11.5. hold the pin is used to pause the serial communication with the device without having to stop or reset the clock sequence. the hold mode, however, does not have an affect on any internally self - timed operations such as a program or erase cycle. therefore, if an erase cycle is in progress, asserting the pin will not pause the operation, and the erase cycle will continue until it is finished. the hold mode can only be entered while the pin is asserted. the hold mode is activated simply by asserting the pin during the sck low pulse. if the pin is asserted during the sck high pulse, then the hold mode won?t be started until the beginning of the next sck low pulse. the device will remain in the hold mode as long as the pin and pin are asserted. while in the hold mode, the so pin will be in a high - impedance state. in add ition, both the si pin and the sck pin will be ignored. the pin, however, can still be asserted or deasserted while in the hold mode. to end the hold mode and resume serial communication, the pin mu st be deasserted during the sck low pulse. if the pin is deasserted during the sck high pulse, then the hold mode won?t end until the beginning of the next sck low pulse. if the pin is deasserted wh ile the pin is still asserted, then any operation that may have been started will be aborted, and the device will reset the wel bit in the status register back to the logical ?0? state. figure 11 - 5. hold mode h o l d s c k c s h o l d h o l d h o l d wp cs cs cs hold hold hold hold hold hold hold hold
46 atmel at25df641 3680f ? dflash ? 4/10 12. atmel rapids impl ementation to implement atmel ? rapids ? and operate at clock frequencies higher than what can be achieved in a viable spi implementation, a full clock cycle can be used to transmit data back and forth across the serial bus. the atmel at25df641 is designed t o always clock its data out on the falling edge of the sck signal and clock data in on the rising edge of sck. for full clock cycle operation to be achieved, when the at25df641 is clocking data out on the falling edge of sck, the host controller should wai t until the next falling edge of sck to latch the data in. similarly, the host controller should clock its data out on the rising edge of sck in order to give the at25df641 a full clock cycle to latch the incoming data in on the next rising edge of sck. im plementing rapids allows a system to run at higher clock frequencies since a full clock cycle is used to accommodate a device?s clock - to - output time, input setup time, and associated rise/fall times. for example, if th e system clock frequency is 100mhz (10 ns cycle time) with a 50% duty cycle, and the host controll er has an input setup time of 2 ns, then a standard spi implementation would require that the slave device be capable of outputting its data in less than 3ns to meet the 2 ns host controller setup ti me [(10ns x 50%) - 2 ns] not accounting for rise/fall times. in an spi mode 0 or 3 implementation, the spi master is designed to clock in data on the next immediate rising edge of sck after the spi slave has clocked its data out on the preceding falling edg e. this essentially makes spi a half - clock cycle protocol and requires extremely fast clock - to - output times and input setup times in order to run at high clock frequencies. with a rapids implementation of thi s example, however, the full 10 ns cycle time is available which gives the slave device up to 8 ns, not accounting for rise/fall times, to clock its data out. likewise, with rapids, the host controller has more time available to output its data to the slave since the slave device would be clocking that da ta in a full clock cycle later. figure 12 - 1. rapids operation m o s i m i s o s c k s l a v e c s t v 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 a b c d e f g 1 h byte a msb lsb byte b msb lsb i mosi = master out, slave in miso = master in, slave out the master is the asic/mcu and the slave is the memory device. the master always clocks data out on the rising edge of sck and always clocks data in on the falling edge of sck. the slave always clocks data out on the falling edge of sck and always clocks data in on the rising edge of sck. a. master clocks out first bit of byte a on the rising edge of sck b. slave clocks in first bit of byte a on the ne xt rising edge of sck c. master clocks out second bit of byte a on the same rising edge of sck d. last bit of byte a is clocked out from the master e. last bit of byte a is clocked into the slave f. slave clocks out first bit of byte b g. maste r clocks in first bit of byte b h. slave clocks out second bit of byte b i. mast er clocks in last bit of byte b
atmel at25df641 47 3680f ? dflash ? 4/10 13. electrical specifications 13.1. absolute maximum ratings* temperature under bias ......................... ? 55 c to + 125c storage temperature ........................... ? 65c to + 150 c all input voltages (includi ng nc pins) with respect to ground ............................... ? 0.6 v +4.1 v all output voltages with respect to ground .................... ? 0.6 v to v cc +0.5v *notice: stresses beyond those listed under ?absolute maximum ratings? may cause permanent damage to the device. this is a stress rating o nly and functional operation of the device at these or any other conditions beyond those indicated in the operational sections of this specification are not implied. exposure to absolute maximum rating conditions for extended periods may affect device reli ability. 13.2. dc and ac operating range atmel at25df641 operating temperature (case) ind. -40 c to 85c v cc power supply 2.7v to 3.6v 13.3. dc characteristics symbol parameter condition min typ max units i sb standby current , , = v cc , all inputs at cmos levels 25 50 a i dpd deep power - down current , , = v cc , all inputs at cmos levels 15 25 a i cc1 active current, read operation f = 75 mhz; i out = 0 ma; = v il , v cc = max 13 17 ma f = 66 mhz; i out = 0 ma; = v il , v cc = max 12 14 f = 50 mhz; i out = 0 ma; = v il , v cc = max 11 13 f = 33 mhz; i out = 0 ma; = v il , v cc = max 10 12 f = 20 mhz; i out = 0 ma; = v il , v cc = max 9 11 i cc2 active current, program operation = v cc , v cc = max 12 18 ma i cc3 active current, erase operation = v cc , v cc = max 12 18 ma i li input leakage current v in = cmos levels 1 a i lo output leakage current v out = cmos levels 1 a v il input low voltage 0.3 x v cc v v ih input high voltage 0.7 x v cc v v ol output low voltage i ol = 1.6 ma; v cc = min 0.4 v v oh output high voltage i oh = - 100 a; v cc = min v cc - 0.2v v wp wp cs cs cs cs cs cs cs cs cs hold hold
48 atmel at25df641 3680f ? dflash ? 4/10 13.4. ac characteristics - maximum clock frequencies symbol parameter min max units atmel ra pids and spi operation f max maximum clock frequency for all operations ? atmel rapids operation only (excluding 0bh, 03h, 3bh, and 9f opcodes) 100 mhz f clk maximum clock frequency for all operations (excluding 03h and 3bh opcodes) 75 mhz f rdlf maximum clock frequency for 03h opcode (read array ? low frequency) 45 mhz f rddo maximum clock frequency for 3bh opcode (dual - output read) 55 mhz 13.5. ac characteristics ? all other parameters symbol parameter min max units t clkh clock high time 4.3 ns t clkl cl ock low time 4.3 ns t clkr (1) clock rise time, peak -to - peak (slew rate) 0.1 v/ns t clkf (1) clock fall time, peak -to - peak (slew rate ) 0.1 v/ns t csh chip select high time 50 ns t csls chip select low setup time (relative to clock) 5 ns t cslh chip sele ct low hold time (relative to clock) 5 ns t cshs chip select high setup time (relative to clock) 5 ns t cshh chip select high hold time (relative to clock) 5 ns t ds data in setup time 2 ns t dh data in hold time 1 ns t dis (1) output disable time 5 n s t v (2) output valid time 5 ns t oh output hold time 2 ns t hls low setup time (relative to clock) 5 ns t hlh low hold time (relative to clock) 5 ns t hhs high setu p time (relative to clock) 5 ns t hhh high hold time (relative to clock) 5 ns t hlqz (1) low to output high -z 5 ns t hhqx (1) high to output low -z 5 ns t wps (1)(3) wri te protect setup time 20 ns t wph (1)(3) write protect hold time 100 ns t secp (1) sector protect time (from chip select high) 20 ns t secup (1) sector unprotect time (from chip select high) 20 ns t lock (1) sector lockdown and freeze sector lockdown state time (from chip select high) 200 s t edpd (1) chip select high to deep power - down 1 s t rdpd (1) chip select high to standby mode 30 s t rst reset time 30 s notes: 1. not 100% tested (value guaranteed by design and characterization) 2. 15 pf load a t frequencie s above 70mhz, 30pf otherwise 3. only applicable as a constraint for the write status regist er byte 1 command when sprl = 1 hold hold hold hold hold hold
atmel at25df641 49 3680f ? dflash ? 4/10 13.6. program and erase characteristics symbol parameter min typ max units t pp (1) page program time (256 bytes) 1.0 3.0 ms t bp byte program time 7 s t blke (1) block erase time 4 - kbytes 50 200 ms 32- kbytes 250 600 64- kbytes 400 950 t chpe (1)(2) chip erase time 64 112 sec t susp program/erase suspend time 10 20 s t res program/erase resume time 10 20 s t otpp (1) otp security register program time 200 500 s t wrsr (2) write status register time 200 ns notes: 1. maximum values indicate worst - case performance after 100,000 erase/program cy cles 2. not 100% tested (value guaranteed by design and characterizati on) 13.7. power - up conditions symbol parameter min max units t vcsl minimum v cc to chip select low time 50 s t puw power - up device delay before program or erase allowed 10 ms v por power - on reset voltage 1.5 2.5 v 13.8. input test waveforms and measurement levels a c driving levels a c measurement level 0.1v c c v c c /2 0.9v c c t r , t f < 2 ns (10% to 90%) 13.9. output test load device under test 15pf (frequencies above 70mhz) or 30pf
50 atmel at25df641 3680f ? dflash ? 4/10 14. ac waveforms figure 14 - 1. serial input timing s o s i s c k c s m s b h i g h - i m p e d a n c e m s b l s b t c s l s t c l k h t c l k l t c s h s t c s h h t d s t d h t c s l h t c s h figure 14 - 2. serial output timing s o s i s c k c s t v t c l k h t c l k l t d i s t v t o h figure 14 - 3. wp timing for write status register byte 1 command when sprl = 1 s o s i s c k w p c s 0 0 0 h i g h - i m p e d a n c e m s b x t w p s t w p h l s b o f w r i t e s t a t u s r e g i s t e r d a t a b y t e m s b o f w r i t e s t a t u s r e g i s t e r b y t e 1 o p c o d e m s b o f n e x t o p c o d e
atmel at25df641 51 3680f ? dflash ? 4/10 figure 14 - 4. hold timing ? serial input s o s i h o l d s c k c s t h h h t h l s t h l h t h h s h i g h - i m p e d a n c e figure 14 - 5. hold timing ? serial output s o s i h o l d s c k c s t h h h t h l s t h l q z t h l h t h h s t h h q x
52 atmel at25df641 3680f ? dflash ? 4/10 15. ordering information 15.1. ordering code detail atmel designat or prod uct fami ly device density interface shipping carrier option devi ce grade package opti on 64 = 64-m egab it 1 = serial b = bulk (tub es) y = bulk (tr ays) t = tape and reel h = gre en, nipd au lead fin ish, ind ust rial temp erat ure rang e -40 c to +85 c s3 = 16- lead , 0.300? wide soic mw= 8-contract, 6mm x 8mm vdfn a t 2 5 d f 6 4 1 - s 3 h - b 15.2. gr een package options (pb/halide - free/rohs compliant) ordering code package lead finish voltage max. freq. (mhz) operating range at25df641 - s3h - b at25df641 - s3h -t 16s nipdau 2.7v to 3.6v 75 industrial temperature (? 40c to 85c) at25df641 - mwh - y at25df641 -mw h -t 8mw1 note : the shipping carrier option code is not marked on the devices package type 16s 16 - lead, 0.300" wide, plastic gull wing small outline package (soic) 8mw1 8 - contact, 6 x 8 mm, very thin dual flat no lead package (vdfn)
atmel at25df641 53 3680f ? dflash ? 4/10 16. packagi ng information 16s ? soic p a c k a g e d r a w i n g c o n t a c t : p a c k a g e d r a w i n g s @ a t m e l . c o m d r a w i n g n o . r e v . t i t l e notes: 1. this dr a wing is f or gener al inf or mation only; ref er to jedec dr a wing ms-013, v ar iation aa f or additio nal inf or mation. 2. dimension d does not include mold flash, protr usions or gate b urrs . mold flash, protr usion and gate b urrs shall not e xceed 0.15 mm (0.006") per side . 3. dimension e does not include inter-le ad flash or protr usion. inter-lead flash and protr usions shall not e xceed 0 .25 mm (0.010") per side . 4. l is the length of the ter minal f or solder ing to a substr ate . 16s a 1 1 / 0 2 / 0 5 16s, 16-lead, 0.300" wide body , plastic gull wing small outline p ac kage (soic) end view top view side view common dimensions (unit of measure = mm) symbol min nom max note 2.35 0.10 0.31 0.40 0.20 a a1 b d e h l e c ? ? ? 10.30 bsc 7.50 bsc 10.30 bsc ? 1.27 bsc 2.65 0.30 0.51 1.27 0.33 2 3 4 h e n 1 a 1 b e a d e l c
54 atmel at25df641 3680f ? dflash ? 4/10 8mw1 ? vdfn p a c k a g e d r a w i n g c o n t a c t : p a c k a g e d r a w i n g s @ a t m e l . c o m d r a w i n g n o . r e v . t i t l e 8mw1 e 1 / 1 2 / 0 9 8mw1, 8-pad (6 x 8 x 1.0 mm body), ther mally enhanced plastic v er y thin dual flat no lead p ac kage (vdfn) bottom view top view side view common dimensions (unit of measure = mm) symbol min nom max note 0.80 ? 0.35 5.90 4.70 7.90 4.80 0.45 a a1 b c d d1 e e1 e l k ? ? 0.40 0.203 ref 6.00 4.80 8.00 4.90 1.27 0.50 1.05 ref 1.00 0.05 0.48 6.10 4.90 8.10 5.00 0.55 pin 1 id e d a1 a c p i n # 1 i d e 1 d 1 l b e k 1 pin #1 chamf er (c 0.30) option a pin #1 notch (0.20 r) option b 2 3 4 8 7 6 5
atmel at25df641 55 3680f ? dflash ? 4/10 17. revision history doc. rev. date comments 3680f 04/2010 changed deep power down current ? increased typical value from 5 a to 15 a ? increased max value from 10 a to 25 a changed active current, read operation ? removed i cc1 for 100mhz ? decreased i cc1 frequency from 85mhz to 75mhz ? increased typical i cc1 value from 10ma to 13ma ? increased typical i cc1 value for 66mhz from 8ma to 12ma ? increased typical i cc1 value for 50mhz from 7ma to 11ma and max value fro m 12ma to 13ma ? increased typical i cc1 value for 33mhz from 6ma to 10ma and max value from 10ma to 12ma ? increased typical i cc1 value for 20mhz from 5ma to 9ma and max value from 8ma to 11ma changed the read array frequencies ? 1bh command: decreased ma x value from 100mhz to 75mhz ? 0bh command: decreased max value from 85mhz to 75mhz ? 03h command: decreased max value from 50mhz to 45mhz ? 3bh command: decreased max value from 85mhz to 55mhz removed ?preliminary? status from datasheet removed the errat a section 3680e 12/2008 changed standby current value ? increased maximum value from 35 a to 50 a changed deep power - down current values ? increased typical value from 1 a to 5 a ? increased maximum value from 5 a to 10 a 3680d 11/2008 added errata (sec tion 18) regarding erase suspend and ac characteristics corrected clock frequency values in table 5 - 1 3680c 06/2008 replaced the technical illustration (16s2) with the correct one (16s) o n page 53 3680b 02/2008 minor text edits throughout document changed standby current values ? increased typical value from 10 a to 25 a ? increased maximum value from 20 a to 35 a changed minimum clock high time and minimum clock low time from 3.7ns to 4.3ns 36 80a 12/2007 initial document release
3680f ? dflash ? 4/10 headquarters international atmel corporation 2325 orchard parkway san jose, ca 95131 usa tel: (+1) (408) 441 - 0311 fax: (+1) (408) 487 - 2600 www.atmel.com atmel asia limited unit 01 - 5 & 16, 19f bea tower, mi llennium city 5 418 kwun tong road kwun tong, kowloon hong kong tel: (+852) 2245 - 6100 fax: (+852) 2722 - 1369 atmel munich gmbh business campus parkring 4 d - 85748 garching b. munich germany tel: (+49) 89 - 31970- 0 fax: (+49) 89 - 3194621 atmel japan 9f, tonet su shinkawa bldg. 1 - 24- 8 shinkawa chuo - ku, tokyo 104 - 0033 japan tel: (+81) (3) 3523 - 3551 fax: (+81) (3) 3523 - 7581 product contact technical support s_eeprom @atmel.com sales contact www.atmel.com/contacts literature requests www.atmel.com/literat ure disclaimer: the information in this document is provided in connection with atmel products. no license, express or implied, by estoppel o r otherwise, to any intellectual property right is granted by this document or in connection with the sal e of atmel products. except as set forth in atmel? s terms and condi tions of sale located on atmel?s web site, atmel assumes no liability whatsoever and disclaims any express, implied or statutory warranty relating to its products including, but not limited to, the implied warranty of merchantability, fitness for a particular purpose, or non - infringement. in no event shall atmel be liable for any direct, indirect, consequential, punitive, special or inciden - tal damages (including, without limitation, damages for loss of profits, business interruption, or loss of information) arising out of the use or inability to use this document, even if atmel has been advised of the possibility of such damages. atmel makes no representations or warranties with respect to t he accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and product descriptions at any time without notice. atmel does not make any commitment to update the information contained herein. unless specifically provided otherwise, atmel products are not suitable for, and shall not be used in, automotive applications. atmel?s products are not intended, au thorized, or warranted for use as components in applicati ons intended to support or sustain life. ? 20 10 atmel corporation. all rights reserved. atmel ? , logo and combinations thereof, dataflash ? , rapids ? , and others are registered trademarks or trademarks of atmel corporation or its subsidiaries. other terms an d product names may be trademarks of others.


▲Up To Search▲   

 
Price & Availability of AT25DF641-S3H-T

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X